摘要: ###html ``` <div id="box"></div> ``` ###css ``` #box{ width: 100px; height: 100px; background-color: #0f9;} ``` ###js ``` var test = { a: function() { 阅读全文
posted @ 2016-02-16 11:45 bronana 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 1 /* 2 function Box() { 3 this.a = []; 4 this.fn = function() {} 5 } 6 7 var box1 = new Box(); 8 var box2 = new Box(); 9 box1.a.push(1); 10 box1.a.pus 阅读全文
posted @ 2016-02-16 10:55 bronana 阅读(183) 评论(0) 推荐(0) 编辑