摘要: ----------------------------------------------------------------- cc = function(){alert(345)}, pushStack = function() { cc(); }, pushStack();//345 //没加var的放在window对象中 pushStack = function() { ... 阅读全文
posted @ 2017-05-25 22:51 无天666 阅读(1890) 评论(0) 推荐(0)
摘要: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><meta http-equiv="Content-Type" content="text/ht 阅读全文
posted @ 2017-05-25 15:43 无天666 阅读(769) 评论(0) 推荐(0)
摘要: function F(){ this.a = "aaa"; alert(111); } F.prototype = { constructor:F, } var f = new F.prototype.constructor(); alert(f.a);//aaa F.prototype.constructor();//111 alert(F === F.prototyp... 阅读全文
posted @ 2017-05-25 03:12 无天666 阅读(780) 评论(0) 推荐(0)
摘要: 无标题文档 无标题文档 //jQury源码加载进来的,是一个立即执行函数,会先执行一些代码。 无标题文档 阅读全文
posted @ 2017-05-25 01:45 无天666 阅读(241) 评论(0) 推荐(0)