Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/78.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 带有asp.net母版页的head.js抛出HTML解析错误_Jquery_Head.js - Fatal编程技术网

Jquery 带有asp.net母版页的head.js抛出HTML解析错误

Jquery 带有asp.net母版页的head.js抛出HTML解析错误,jquery,head.js,Jquery,Head.js,我试图使用head.js在我的asp.net页面中加载javascript文件,该页面使用母版页(和用户控件)来确保它们更加独立 但是我得到了这个错误“HTML解析错误:在加载页面时,无法在关闭子元素之前修改父容器元素” head.js在母版页中引用 基本上,我在实际的aspx页面中的一个contentholder中有以下脚本 <script type="text/javascript"> head.js("http://ajax.googleapis.com/ajax/l

我试图使用head.js在我的asp.net页面中加载javascript文件,该页面使用母版页(和用户控件)来确保它们更加独立

但是我得到了这个错误“HTML解析错误:在加载页面时,无法在关闭子元素之前修改父容器元素”

head.js在母版页中引用

基本上,我在实际的aspx页面中的一个contentholder中有以下脚本

<script type="text/javascript">

    head.js("http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.js", function() {

        alert('load done');

    });

</script>

head.js(“http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.js“,函数(){
警报(“加载完成”);
});

有什么建议吗?

我在母版页中使用
head.js
,但我从来没有遇到过这样的问题,您是否使用
head.ready
来代替
$(文档).ready
?您确定错误来自head.js而不是其他地方吗?看起来错误只发生在IE中。firefox和chrome没有错误。此错误可在哪个版本的IE中复制?可能这个问题现在不是实际问题,你们可以把一些评论作为答案,关闭问题作为答案