摘要: 原文链接:http://caibaojian.com/about-settimeout.html 前言:看了这篇文章,1.注意setTimeout引用的是全部变量还是局部变量了,当直接调用外部函数方法时,实际上函数内部的变量已经变成全局。2.提醒我防止出错的,用匿名函数不容易出错。3.setTime 阅读全文
posted @ 2017-07-18 16:53 rrranmo 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 1 toggleNav(event){ 2 if($(event.target)[0].className!='selected'){ 3 $(event.target)[0].className='selected'; 4 $($(event.target)[... 阅读全文
posted @ 2017-07-18 13:43 rrranmo 阅读(746) 评论(0) 推荐(0) 编辑