类型是不确定的MVC AJAX脚本 [英] Type is undefined MVC AJAX Script
问题描述
在我的应用程序的一个页面我得到的类型未定义的对AJAX脚本错误。
为什么会变成这样?
错误消息:
类型未定义结果
MicrosoftMvcAjax.js()()Microsof ... vcAjax.js结果
(6号线)结果
[关于此错误BREAK]结果
Type.registerNamespace('Sys.Mvc');结果,
Sys.Mv ... reate_AjaxOptions =函数(){返回{};}`
块引用>解决方案您可以通过安装Firefox的Firebug开始 - 它会给你一个更好的错误信息完整的调用堆栈
。听起来像是你试图实例化一个没有被定义的东西,也许你不包括javascript文件?
In one page of my application I get Type is undefined error on the AJAX script.
Why would this be?
Error message:
Type is not defined
MicrosoftMvcAjax.js()()Microsof...vcAjax.js
(line 6)
[Break on this error]
Type.registerNamespace('Sys.Mvc');
Sys.Mv...reate_AjaxOptions=function(){return {};}`
解决方案You can start off by installing Firebug for Firefox - it will give you a better error message complete with a call stack.
Sounds like you are trying to instantiate something that is not defined, perhaps you didn't include a javascript file?
这篇关于类型是不确定的MVC AJAX脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!