摘要: function myLogger() { } /* myLogger.prototype.write = function(message) { }; myLogger.prototype.header = function(message) { }; myLogger.prototype.link = function... 阅读全文
posted @ 2016-04-18 20:02 绯乐 阅读(122) 评论(0) 推荐(0) 编辑
摘要: var test = function() {//将其看成是创建了一个对象 alert(1); } var otherTest = test;//赋值导致test和otherTest指向同一个对象 otherTest(); test.sd = 9;//对对象进行操作,两者都发生改变 alert(otherTest.sd);//9 ... 阅读全文
posted @ 2016-04-18 19:49 绯乐 阅读(117) 评论(0) 推荐(0) 编辑