jQuery 1.9.1无法获取未定义或空引用行5823的属性'createDocumentFragment' [英] jQuery 1.9.1 Unable to get property 'createDocumentFragment' of undefined or null reference Line 5823

查看:108
本文介绍了jQuery 1.9.1无法获取未定义或空引用行5823的属性'createDocumentFragment'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我更新了我的ASP.Net MVC4项目以升级到jQuery 1.9.1。但是从那时起我加载任何页面时都会收到一个奇怪的错误:

Recently I updated my ASP.Net MVC4 project to upgrade to jQuery 1.9.1. But since then I am getting a strange error as soon as any page is loaded:

(Chrome)jquery-1.9.1.js:5823 Uncaught TypeError:无法调用方法'createDocumentFragment'为null

(Chrome) jquery-1.9.1.js:5823 Uncaught TypeError: Cannot call method 'createDocumentFragment' of null

(IE10)无法获取未定义或空引用的属性'createDocumentFragment'
jquery-1.9.1.js,第5823行3

(IE10) Unable to get property 'createDocumentFragment' of undefined or null reference jquery-1.9.1.js, line 5823 character 3

传递给其父函数createSafeFragment(document)的'document'参数始终为null。该错误在IE10和Chrome中都是持久的。下面是脚本如何包含在布局中:

The 'document' parameter being passed to its parent function createSafeFragment( document ) is always null. The error is persistent in IE10 as well as Chrome. Below is how scripts are included in the layout:

<script src="/Scripts/jquery-1.9.1.js"></script>
<script src="/Scripts/jquery-ui-1.10.2.js"></script>
<script src="/Scripts/jquery.unobtrusive-ajax.js"></script>
<script src="/Scripts/jquery.validate.js"></script>
<script src="/Scripts/jquery.validate.unobtrusive.js"></script>
<script src="/Scripts/bootstrap.js"></script>

我试图通过调试脚本来跟踪错误,但找不到确切的来源。

I tried to trace the error by debugging the scripts but could not find the exact source.

有没有人遇到任何突破?任何帮助表示赞赏。

Has anybody come across this with any breakthrough? Any help is appreciated.

UPDATE

jQuery Tooltip与Bootstrap Tooltip发生冲突。
更改了使用Bootstrap的功能,错误已经消失。

jQuery Tooltip was conflicting with Bootstrap Tooltip. Changed the functionality to use Bootstrap and the error has gone.

推荐答案

你只是在bootstrap和jQuery之间发生冲突UI工具提示功能。

You have simply a conflict between bootstrap and jQuery UI tooltips features.

您不能在同一显示器上使用booth工具提示功能。对于任何选择一个并去自定义另一个删除工具提示功能。删除所有其他重复的无用功能(对于使用JQUI或BT的对话框也没用)。下载修改后的软件包并替换js目录中的.js文件。

You can't use booth tooltips feature on the same display. For any choose one and go to customize the other to remove tooltips feature. Remove all other duplicated none-useful features (not useful to use dialog from JQUI or BT too). Download the modified package and replace the .js file in your js directory.

取消选中不需要的功能: Boostrap自定义包 jQuery UI自定义包

Unchecked unneeded features from : Boostrap customize package or jQuery UI customize package

这篇关于jQuery 1.9.1无法获取未定义或空引用行5823的属性'createDocumentFragment'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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