07 2014 档案

摘要:最近在编写一个js库采用的是面向对象的思想来进行编写,因此在js继承上有了一定的问题js继承有几种继承方式,分别为原型继承,类似继承,混合继承。原型继承: var child = function(){} var parent = function(){}child.prototype=new p... 阅读全文
posted @ 2014-07-18 10:20 Sekeys 阅读(562) 评论(0) 推荐(0)
摘要:Ns.UI.AjaxForm = function () { Ns.UI.Control.apply(this, arguments); this.onError = null; this.onSuccess = null; this.onBeforSend = null; this.onCompl... 阅读全文
posted @ 2014-07-17 14:55 Sekeys 阅读(284) 评论(0) 推荐(0)
摘要:Ns.UI.AjaxForm = function () { Ns.UI.Control.apply(this, arguments);//属于继承 this.onError = null; this.onSuccess = null; this.onBeforSend = ... 阅读全文
posted @ 2014-07-17 12:37 Sekeys 阅读(274) 评论(0) 推荐(0)