未捕获到的SyntaxError:在评估匿名时出现意外的标识符

时间:2018-06-25 05:48:44

标签: model-view-controller kendo-ui grid telerik

我在带有kendo网格和弹出式编辑的MVC中创建一个测试项目。在

在这种情况下,我有3个关系表。但是当我添加第三个

表,出现此错误:

> VM1362:1 Uncaught SyntaxError: Unexpected identifier
>     at eval (<anonymous>)
at (https://kendo.cdn.telerik.com/2017.3.1018/js/jquery.min.js:2:2651)
at `Function.globalEval` (https://kendo.cdn.telerik.com/2017.3.1018/js/jquery.min.js:2:2662)
at Ha (https://kendo.cdn.telerik.com/2017.3.1018/js/jquery.min.js:3:21262)
at `n.fn.init.append` (https://kendo.cdn.telerik.com/2017.3.1018/js/jquery.min.js:3:22791)
at `I.fn.init.n.fn.(anonymous function) [as appendTo]` (https://kendo.cdn.telerik.com/2017.3.1018/js/jquery.min.js:3:24510)
at `init._createPopupEditor` (https://kendo.cdn.telerik.com/2017.3.1018/js/kendo.all.min.js:52:4953)
at `init.editRow` (https://kendo.cdn.telerik.com/2017.3.1018/js/kendo.all.min.js:52:2129)
at `HTMLAnchorElement.<anonymous>` 

如果我在下面注释行,则项目将正确运行:

@{Html.RenderAction("AgreementExpertsIndex", new { xAgreementID = Model.xID });}

谁能说出什么问题? 源代码在这里: source file 谢谢

1 个答案:

答案 0 :(得分:0)

尝试在clickDeleteIcon("Albert"); //or clickDeleteIcon("Bee") 中使用小写的M

Model