随笔分类 -  前端技术

摘要: 阅读全文
posted @ 2015-01-19 19:24 astrue 阅读(263) 评论(0) 推荐(0)
摘要:写几行JS代码 var num = '022'; alert(num+' '+parseInt(num)+' '+parseInt(num,10)); 不同的浏览器将会得到不同的结果在谷歌浏览器下的结果为 022 22 22在IE8下的结果为 022 18 22 原因是在IE8下,js解释器将022 阅读全文
posted @ 2015-01-19 18:58 astrue 阅读(278) 评论(0) 推荐(0)
摘要:之前用<a href="sdfasdfsd.txt">文件</a>,发现在提交数据再返回后,会提示网页过期。 解决办法:<a href="sfsdf.txt" target='_blank'>文件</a>来进行处理 阅读全文
posted @ 2015-01-19 18:37 astrue 阅读(228) 评论(0) 推荐(0)
摘要:iframe里面的子页,用parent.location.href = parent.location.reload();如果是window.open 打开就用opener.location.reload(); 阅读全文
posted @ 2015-01-19 18:35 astrue 阅读(577) 评论(0) 推荐(0)