上一页 1 ··· 90 91 92 93 94 95 96 97 98 ··· 167 下一页
摘要: var getXHR = function(){ alert(2); getXHR = function(){ alert(1); } } g... 阅读全文
posted @ 2017-05-22 18:15 无天666 阅读(663) 评论(0) 推荐(0)
摘要: /** * 掺元类 * 有的适合只需要继承一个类(几个)中的一些函数 * */ (function(){ //我们准备将要被聚合的函数 var JSON = { toJSONString :function(){ var outPut = [];... 阅读全文
posted @ 2017-05-22 15:36 无天666 阅读(493) 评论(0) 推荐(0)
摘要: Untitled Document Untitled Document 阅读全文
posted @ 2017-05-22 10:43 无天666 阅读(322) 评论(0) 推荐(0)
摘要: // BH 命名空间 namespace var BH = {} ; BH.Interface = function(name,methods){ //Interface是类、方法的名字,以后用BH.Interface表示名字。new BH.Interface('CarInterface' ,['start','run']);当类用 //判断接口的参数个数 if(argum... 阅读全文
posted @ 2017-05-22 00:18 无天666 阅读(479) 评论(0) 推荐(0)
摘要: Function.prototype: 阅读全文
posted @ 2017-05-21 18:25 无天666 阅读(258) 评论(0) 推荐(0)
摘要: Untitled Document 阅读全文
posted @ 2017-05-21 17:23 无天666 阅读(265) 评论(0) 推荐(0)
摘要: //装饰者模式:就是在保证不改变原有对象的基础上,去扩展一些想要的方法或去求 var CarInterface = new BH.Interface('CarInterface' , ['getPrice' , 'assemble']); var Car = function(car){ //也可以这样写类。 //让子类都有这个属性 ... 阅读全文
posted @ 2017-05-21 14:22 无天666 阅读(303) 评论(0) 推荐(0)
摘要: Untitled Document 阅读全文
posted @ 2017-05-21 04:33 无天666 阅读(280) 评论(0) 推荐(0)
摘要: Untitled Document 我是div1 我是div2 我是div3 阅读全文
posted @ 2017-05-21 01:58 无天666 阅读(252) 评论(0) 推荐(0)
摘要: Untitled Document 阅读全文
posted @ 2017-05-21 01:39 无天666 阅读(310) 评论(0) 推荐(0)
上一页 1 ··· 90 91 92 93 94 95 96 97 98 ··· 167 下一页