类型是不确定的MVC AJAX脚本 [英] Type is undefined MVC AJAX Script

查看:289
本文介绍了类型是不确定的MVC AJAX脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序的一个页面我得到的类型未定义的对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屋!

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