?1. 一个逗号引发的错误,让我找了两个小时,下面记录下来便以后找到
setTimeout(function(){
art.dialog({ title:"提示", content: "777", width:200, height:100,?????}); },100)
????就是因为上面的那个多余的逗号,导致FF和Chrome都能够正常运行js,就IE不行... ...
2. 一个比较经典的错误了,就是加载顺序的问题了.
????我把jquery.js 放到了footer后面加载,而我的一个关于jquery的函数在其之间就运行了,结果报错,找了好久,因为我是在header中写的jquery的函数.所以在没有加载jquery.js的情况下就运行肯定是报错的.
3. 加载其它页面: window.location.href = '/user/index';
???加载当前页面: window.location.reload();
详细解决方案
js常犯的异常及js的location
热度:76 发布时间:2012-08-30 09:55:54.0
相关解决方案
- 如何用window.location.href上载文件
- 使用window.location.reload()的有关问题
- window.location.href不跳转有关问题
- parent.mainFrame.location 的有关问题
- onclick='window.location.href="xxx.aspx?id="+<%# Eval("id")%>',这样写对吗?该怎么解决
- tomcat没法部署项目报错 Exploded location overlaps an existing deployment
- weblogic调度新项目 set new Location 按钮无法点击
- weblogic部署新项目 set new Location 按钮无法点击解决办法
- tomcat无法部署项目报错 Exploded location overlaps an existing deployment,该如何处理
- 用ghost还原win xp出现如下提示"output error file to the following location A:\Ghost TRR.TXT解决方法
- 在js中使用document.location.href找不到servlet,出现404异常,别人一样的代码就能找到
- 服务器端有没有类似 location.replace() 的函数,该如何解决
- header("location"$url)不能用来if语句中
- 用window.location.href这种跳转页面方式传的值该怎么隐藏或者加密
- 如何用php实现js的top.document.location
- ajax location.href= [object Object]解决办法
- 本机下生成的文件,通过window.location.href 在上载完成后删除生成文件
- header("Location:index.php")页面跳转有关问题
- header("Location: empManage.php")页面跳转到空白页,求解,该怎么处理
- Webkit内核下的js window.location.href失灵
- location.href跳转时不同浏览器对Referer的设立
- location.replace在不同目录被调用时的有关问题
- window.opener.location.reload() 与 href=href 的差异
- 为何火狐下window.location.reload(true);不刷新页面
- 用window.location.href开展跳转,request得不到refer
- windo.location 的页面为何 chrome 浏览器不执行JS
- Undefined exploded archive location 项目不能调度(转)
- document.location.href跟replace区别
- location.href跳转当前页面加锚点的有关问题
- window.location.href=''传递大量数据解决方法之小弟我见