摘要:
var each = function(object, callback) { var type = (function() { switch (object.constructor) { case Object: return 'Object'; break; case Array: return 阅读全文
摘要:
javascript 代替jqueryeach写法 // 通过字面量方式实现的函数each var each = function(object, callback){ var type = (function(){ switch (object.constructor){ case Object: 阅读全文
摘要:
javascript地址引用 var a = new Object(); a.price = 173; var b = a; b.price = 170; //b更改了属性值,a的属性值一起会被改变 alert(a.price); //输出170 var a =3 var b = a; b=4; a 阅读全文