javascript
smilecrab
这个作者很懒,什么都没留下…
展开
-
javascript-5种跳转页面的办法
[code="j三"]window.location.href=”login.jsp?backurl=”+window.location.href;[/code][code="js"]alert(”back”);window.history.back(-1);[/code][code="js"]window.navigate(”top.j...原创 2012-02-08 11:19:48 · 86 阅读 · 0 评论 -
javascript两个等于号与三个等于号
==先转换类型再比较,===先判断类型,如果不是同一类型直接为false。===表示恒等于,比较的两边要绝对的相同alert(0 == ""); // truealert(0 == false); // truealert("" == false); // truealert(0 === ""); // falsealert(0 === false); // fal...原创 2012-02-14 13:52:07 · 170 阅读 · 0 评论