JavaScript运行时错误:应为':'在IE中
JavaScript runtime error: Expected ':' in IE
没有主意了,看看是否有人能帮我。
这是我代码的一部分,编辑Kendo网格上下拉列表的功能。在FireFox和Chrome上运行得非常好,只有IE(我有11个版本)在编辑点击时给了我这个奇怪的错误。当用户单击"编辑"按钮时,会填充此代码。
$('#sleevegrid').data('kendoGrid').columns[5].editor = "<input id='SleeveSubProductID' name='SleeveSubProductID' style='width: 135px' type='text'/>'
<script>jQuery(function(){jQuery('#SleeveSubProductID').kendoDropDownList('
{'
'valuePrimitive': true,'
'dataSource':'
{'
'transport':'
{'read':{'
'url':'/NewAccounts/SubProducts_Read','
'data': getProduct,'
function() '
{'
return kendo.ui.DropDownList.requestData(jQuery('#SleeveSubProductID'));'
}'
},'
'prefix':''},'
'serverFiltering':true,'
'change':SleeveSubProductID_OnEdit_DataSourceChange,'
'filter':[],'
'schema':{'errors':'Errors'}'
},'
'dataTextField':'SubProductName','
'autoBind':true,'
'dataValueField':'SubProductID','
'optionLabel':'Please Select One'});'
});<" + "/script>";
错误来自jquery-1.9.1.js
enter code here
globalEval:函数(数据){if(data&&jQuery.trim(data)){(window.execScript||函数(数据){window["eval"].call(window,data)})(数据);}
我找到了解决方案。问题出在这一行:
{'read'{'url':'/NewAccounts/SubProducts_Read','data':getProduct},'prefix':''},'
相关文章:
- JavaScript错误:Microsoft JScript运行时错误:应为对象
- 当出现javascript运行时错误时会发生什么
- Microsoft JScript运行时错误:无法获取属性'的值;样式':对象为null或未定义
- Microsoft JScript运行时错误:'Sys'未定义(在mvc3 c#剃刀中)
- JavaScript运行时错误:完成此操作所需的数据尚不可用
- 管理node.js中的运行时错误
- Windows 8应用程序正在运行,现在得到0x800a1391-JavaScript运行时错误:'WinJS&
- 如何从 MVC4 链接调用 Javascript 方法(错误 JavaScript 运行时错误:对象不支持此操作)
- JavaScript 运行时错误仅在本地计算机上
- 运行时错误:对象不支持属性或方法
- JavaScript 错误(Microsoft JScript 运行时错误:对象预期)
- Javascript 运行时错误:“应用程序未定义”
- JavaScript运行时错误:应为':'在IE中
- IE 错误 .JavaScript 运行时错误:对象不支持属性或方法“preventDefault”
- IE显示innerHTML的运行时错误
- Javascript运行时错误IE 11
- IE中JavaScript运行时错误
- IE javascript处理文本框时出现未知运行时错误
- Microsoft JScript运行时错误:IE中的Dropbox.js被拒绝访问
- jQuery触发自定义事件导致IE中出现未知运行时错误