2016-06-27 70 views
0

我得到一個錯誤(0x800a01b6 - JavaScript運行時錯誤:對象不支持屬性或方法調用) 我已經搜索了這個錯誤。但我找不到我想要的解決方案。0x800a01b6 - JavaScript運行時錯誤:對象不支持屬性或方法'調用'

到錯誤的位置:〜/腳本/ jQuery的ui.min-1.11.1.js

我怎樣才能解決這個問題?

_Layout.vbhtml

<!DOCTYPE html> 
<html> 

<head> 

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=yes, target-densitydpi=medium-dpi" /> 
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" /> 
<meta name="Author" content="" /> 
<meta name="Keywords" content="" /> 
<meta name="Description" content="" /> 
<meta charset="utf-8" /> 
<meta name="viewport" content="width=device-width" /> 

<link href="favicon.ico" rel="shortcut icon" /> 

<script type="text/javascript" src="@Url.Content("~/Scripts/jquery-1.11.1.min.js")"></script> 
<script type="text/javascript" src="@Url.Content("~/Scripts/jquery-ui.min-1.11.1.js")"></script> 
<script type="text/javascript" src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")"></script> 
<script type="text/javascript" src="@Url.Content("~/Scripts/modernizr-2.8.3.js")"></script> 

@Scripts.Render("~/bundles/kendo") 
@Scripts.Render("~/bundles/klis") 

@Styles.Render("~/content/kendo") 
@Styles.Render("~/content/klis") 

</head> 

BundleConfig.vb

Public Shared Sub RegisterBundles(ByVal bundles As BundleCollection) 

    bundles.Add(New ScriptBundle("~/bundles/jquery").Include(
       "~/Scripts/jquery-{version}.js")) 

    bundles.Add(New ScriptBundle("~/bundles/jqueryui").Include(
       "~/Scripts/jquery-ui-{version}.js")) 

    bundles.Add(New ScriptBundle("~/bundles/jqueryval").Include(
       "~/Scripts/jquery.unobtrusive*", 
       "~/Scripts/jquery.validate*")) 

    bundles.Add(New ScriptBundle("~/bundles/klis").Include("~/klis/js/ks.*")) 

    bundles.Add(New ScriptBundle("~/bundles/kendo").Include(
       "~/Scripts/kendo.all.min.js", 
       "~/Scripts/cultures/kendo.culture.ko-KR.min.js")) 

    bundles.Add(New ScriptBundle("~/bundles/modernizr").Include(
       "~/Scripts/modernizr-*")) 


    bundles.Add(New StyleBundle("~/content/kendo").Include(
       "~/Content/kendo.common.min.css", "~/Content/kendo.dataviz.min.css", "~/Content/kendo.default.min.css")) 

    bundles.Add(New StyleBundle("~/content/klis").Include("~/klis/css/kendo/ks.*", "~/klis/css/ks.*", 
               "~/klis/css/control/ks.*", "~/klis/css/site/ks.*", "~/klis/css/page/ks.*", 
               "~/klis/css/view/ks.*", "~/klis/css/item/ks.*")) 

    BundleTable.EnableOptimizations = True 

End Sub 

回答

0

它看起來像你使用的是很舊版本的jQuery。目前的版本是3.0,爲什麼你使用版本1.11.1?它是否與jquery-ui的版本號相匹配?這些版本號是不相關的....

如果你更新jquery到最新版本,這應該修復它。

+0

Humm ...非常感謝你,@utxin(: –

+0

Yapp !!謝謝你〜(: –

相關問題