2017年3月14日

JavaScript ES2015

摘要: Uncaught TypeError: Cannot read property 'innerText' of undefined 出现这个错误的原因是因为button[i]不存在,即为undefined 每次我们点击按钮时,事件监听回调函数中得到的变量i都会等于button.length,也就是4 阅读全文

posted @ 2017-03-14 16:17 含蓄的龅牙妹 阅读(207) 评论(0) 推荐(0)

jQuery extend

摘要: 摘自API: jQuery.extend([],target,object1,[objectN]) 用一个或多个其他对象来扩展一个对象,返回被扩展的对象. 如果不指定target,则给JQuery命名空间本身进行扩展.这有助于插件作者为jQuery增加新方法,如果第一个参数设置为true,则jQue 阅读全文

posted @ 2017-03-14 10:36 含蓄的龅牙妹 阅读(226) 评论(0) 推荐(0)

导航