atitit.js浏览器环境下的全局异常捕获 window.onerror = function(errorMessage, scriptURI, lineNumber) { var s= JSON.stringify(arguments); alert(s); //alert(errorMessa ...
分类:
Web程序 时间:
2016-10-07 20:45:28
阅读次数:
343
Atitit html5 Canvas 如何自适应屏幕大小 可以用JS监控屏幕大小,然后调整Canvas的大小。在代码中加入JS 1 2 3 4 5 6 7 $(window).resize(resizeCanvas); function resizeCanvas() { canvas.attr(" ...
分类:
Web程序 时间:
2016-10-07 20:31:18
阅读次数:
369
JS中的函数也是一种对象 函数的返回值是return来决定的,没有则返回undefined 1、函数声明法 为什么函数声明的前面可以提前调用该函数? 因为函数声明在加载时是被预先处理的,而函数表达式中,只有函数里声明的变量会被预先处理。 add(5,4); var add =function foo ...
分类:
编程语言 时间:
2016-10-07 20:22:08
阅读次数:
195
<?php class human{ var $name="15"; var $height; var $weight; public function eat($food,$name){ echo $this->name=$name ."s eat ".$food; } public functi ...
分类:
其他好文 时间:
2016-10-07 17:50:31
阅读次数:
135
http://blog.sina.com.cn/s/blog_62c46c3701010q7h.html 一、编写dll library TestDllByD2007; uses SysUtils, Classes; function test(const astr:PChar):Boolean;s ...
http://zhidao.baidu.com/question/157196792.html delphi动态调用DLL 写了个1.dll内容如下 library Project2; uses SysUtils, Classes; {$R *.res} function abc(x,y:Integ ...
首先,在各个浏览器中 HTML元素节点 的返回值有所差异: 1、Firefox2 和 Firefox3 在这两个浏览器中,用 typeof 检测 HTML 对象元素的类型,得到是一个不精确的 “function” 结果,而不是 “object”,如 HTMLDocument。如: alert(typ ...
分类:
其他好文 时间:
2016-10-07 13:32:04
阅读次数:
240
Here are some simple conceptions that I summarized: 1, %rsp top of the stack 2, %rbp base address 3, The stack of function is upside down So when we p ...
分类:
其他好文 时间:
2016-10-07 13:29:02
阅读次数:
119
注:有一定的参考价值,转存 // Code 1uses ActiveX, MSHTML_TLB, ComCtrls, ComObj;function GetBrowserForFrame(Doc: IHTMLDocument2; nFrame: Integer): IWebBrowser2; //T ...
分类:
Web程序 时间:
2016-10-07 01:59:47
阅读次数:
231
<?php header("content-type:text/html;charset=utf8");class m{ var $name="15"; public function __construct($name){ echo $this->name=$name;//这个必须传入参数不然报错 ...
分类:
其他好文 时间:
2016-10-07 01:47:37
阅读次数:
99