码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
一个简单的MVC模型实现
function Event(sender) { this._sender = sender; this._listeners = [];}Event.prototype = { attach : function (listener) { this._listene...
分类:Web程序   时间:2014-06-12 16:38:51    阅读次数:272
prototype 用法
prototype使得js面向对象使用了prototype之后,使用它里面的属性或者函数 需要new出一个对象才可以使用。否则不使用prototype,直接向对象注入 1 function Person(){ 2 3 } 4 Person.prototype.a = 5; 5 Person...
分类:其他好文   时间:2014-06-12 16:30:40    阅读次数:156
iframe自动适应高度1
js:function iFrameHeight() {var ifm= document.getElementById("iframepage");var subWeb =document.frames ? document.frames["iframepage"].document : ifm....
分类:其他好文   时间:2014-06-12 16:00:55    阅读次数:240
js函数定义及一些说明
1.javascript定义函数的三种方法一、function语句//这个方法比较常用function fn(){ alert("这是使用function语句进行函数定义");}fn();二、Function()构造函数 var F = new Function("a","b","alert(a+....
分类:Web程序   时间:2014-06-12 15:46:02    阅读次数:217
What should I do about “302 Found” exceptions when downloading with Indy?
Set theTIdHTTP.HandleRedirectsproperty to True. It is False by default.function FetchUrl(const url: string): string; var idhttp : TIdHTTP; begin id...
分类:其他好文   时间:2014-06-12 14:53:09    阅读次数:286
jQuery编程模仿
近来因为公司不断拖欠工资的关系,停顿了一段学习的时间。看书也有些凌乱,现将目前接触到的querySelectorAll方法作为框架基础的小类库贴出,由于此方法只在最新浏览器中被使用。在开发中仍以jQuery选择器为主,此文只供私下学习。(function(w){ if(!String.trim...
分类:Web程序   时间:2014-06-12 13:54:08    阅读次数:281
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!