07 2015 档案

摘要:1 (function() 2 { 3 var i=0; 4 setInterval(function() 5 { 6 if(i<5) 7 { 8 console.log(i++); 9 }10 ... 阅读全文
posted @ 2015-07-31 18:21 simple_ac 阅读(114) 评论(0) 推荐(0)
摘要:1undefined>-1一个是数值先转化另一个为数,后台调用Number()方法Number(undefined);//NaN2任何数值和NaN比较,falsenull,undefinednull==undefined; //truenull!=undefined; //falsenull==0;... 阅读全文
posted @ 2015-07-31 16:46 simple_ac 阅读(141) 评论(0) 推荐(0)
摘要:frames["richedit"].document.designMode = "on";添加到window.onload事件,否则可能出问题 阅读全文
posted @ 2015-07-30 10:01 simple_ac 阅读(285) 评论(0) 推荐(0)
摘要:Firefox下导致错误,case没有列举所有情况 阅读全文
posted @ 2015-07-30 09:31 simple_ac 阅读(421) 评论(0) 推荐(0)
摘要:解决方法var event=arguments[0];兼容所有浏览器 阅读全文
posted @ 2015-07-29 10:29 simple_ac 阅读(235) 评论(0) 推荐(0)
摘要:1. IE11删除request.responseTextonreadystatechange alert(request.readyState);2. 问题本质:Ajax标准中如何实现这功能——读TXT并加到文档中3. Ajax的XMLHttpRequest对象,其方法和功能4. 自己研究标准,替... 阅读全文
posted @ 2015-07-18 22:58 simple_ac 阅读(201) 评论(0) 推荐(0)