我正在尝试在我的 Web 应用程序中使用 ASP.NET AJAX 工具包的 MaskedEditExtender 控件(带有 MaskedEditValidator)。该控件在 Google Chrome 中工作正常,但 IE9 在加载包含 MaskedEditExtender 控件的页面时抛出“无法获取属性“split”的值:对象为 null 或未定义”错误。
Visual Studio 调试器在以下语句处中断到 MaskedEdit.MaskedEditBehavior.debug.js:
var partdt = arr[0];
var parttm = arr[1];
if (parttm.split(" ").length == 2)
{
parttm += " " + parttm.split(" ")[1]; // breaks here
}
partdt = this.ConvFmtDate(partdt,loadFirst);
我也尝试过使用
<meta http-equiv="X-UA-Compatible" content="IE=8" />
如 this post 中所述但它不起作用。我还在我的应用程序中使用 JQuery 1.4.2。有什么想法吗??
最佳答案
- 您最近是否将网络应用程序从 MVC 2 转换为 MVC 3?
- 如果是这样,您是否使用 unobtrusive Javascript ?
关于jquery - "Unable to get value of the property ' IE 中拆分 ': object is null or undefined"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6609485/