第5行第9列的JavaScript严重错误(未知源位置) [英] JavaScript critical error at line 5, column 9 in (unknown source location)

查看:199
本文介绍了第5行第9列的JavaScript严重错误(未知源位置)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用visual studio 2012



我有这个简单的html页面,不是asp.net页面

 <!DOCTYPE html> 
< html xmlns =http://www.w3.org/1999/xhtml>
< head>
< title> Test Float< / title>
< link rel =stylesheethref =Styles / style.css/>
< / head>
< body>
< div class =header>< / div>
< div class =slideBar>< / div>
< div class =content>< / div>
< div class =footer>< / div>
< / body>
< / html>

我在google chrome上运行它。它运作良好。



当我在Internet Explorer上进行调试时。我得到这个错误:





编辑



对于那些认为sytle表单是问题的人。这里是我的样式表

  html,body {
margin:0px;
身高:100%;
}
.header {
width:100%;
身高:20%;
背景颜色:红色;
}
.footer {
width:100%;
身高:20%;
background-color:green;
}
.slideBar {
width:20%;
身高:60%;
float:right;
background-color:blue;
}
.content {
width:80%;
身高:60%;
background-color:yellow;
}

它对google chrome和mozilla非常有用。代码非常非常简单。只是IE11不是





当我将html页面链接添加到兼容模式后。我得到了这个例外:




解决方案

您的浏览器显然运行了一个插件,它将脚本插入到加载的页面中,这些脚本导致IE11您可以将Visual Studio配置为以安全模式运行IE,方法是将 iexplore -extoff 条目添加到Browse With列表并将其设置为默认,如这里



也就是说,我会建议调查哪个加载项负责这种情况,因为它可能有对您的网络使用(以及您的隐私)的其他不利影响,并且您可能希望尽可能将其删除。


I am using visual studio 2012

I have this simple html page, not asp.net page:

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Test Float</title>
    <link rel="stylesheet" href="Styles/style.css" />
</head>
<body>
    <div class="header"></div>
    <div class="slideBar"></div>
    <div class="content"></div>
    <div class="footer"></div>
</body>
</html>

I run it on google chrome. it works good.

when I debug it on internet explorer. I got this error:

Edit

For those who think that the sytle sheet is the problem. here is my style sheet

html, body {
margin:0px;
height:100%;
}
.header {
    width:100%;
    height:20%;
    background-color:red;
}
.footer {
    width:100%;
    height:20%;
    background-color:green;
}
.slideBar {
    width:20%;
    height:60%;
    float:right;
    background-color:blue;
}
.content {
    width:80%;
    height:60%;
    background-color:yellow;
}

It is working very good on google chrome and mozilla. the code is very very simple. just that IE11 is not

Edit2

After I added my html page link to the compatibility mode. I got this exception:

解决方案

Your browser is apparently running an add-on that injects scripts into loaded pages, and these scripts cause problems with IE11 (and 10).

You can configure Visual Studio to run IE in safe mode by adding an iexplore -extoff entry to the Browse With list and setting it as default, as explained here.

That said, I would recommend investigating which add-on is responsible for this situation, as it may have other adverse effects to your web usage (and to your privacy), and you may want to remove it if at all possible.

这篇关于第5行第9列的JavaScript严重错误(未知源位置)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆