Knockout- Uncaught SyntaxError:无法处理绑定“模板:函数{返回一些数据}消息:意外的令牌''

问题描述

我正在将淘汰赛升级到 3.5.1.js,将 jquery 升级到 3.5.1.js,但是当我点击保存功能时出现以下问题。下面是我得到的错误

Uncaught SyntaxError: Unable to process binding "template: function(){return {name:"sectionTemplate",foreach:sections,templateOptions:{ deleteSection:deleteSection,openAddDocumentsDialog:openAddDocumentsDialog}} }"
Message: Unexpected token ')'
    at new Function (<anonymous>)
    at o (jquery.tmpl.min.js?v=-5276645587873440439:10)
    at Function.template (jquery.tmpl.min.js?v=-5276645587873440439:10)
    at a.$a.renderTemplateSource (knockout-3.5.1.js:138)
    at a.$a.a.ca.renderTemplate (knockout-3.5.1.js:119)
    at e (knockout-3.5.1.js:125)
    at u (knockout-3.5.1.js:128)
    at a.$.l (knockout-3.5.1.js:133)
    at Function.yd (knockout-3.5.1.js:55)
    at Function.zd (knockout-3.5.1.js:55)

下面是我的代码出错

 <div class="pe-sections" data-bind='template: {name: "sectionTemplate",foreach: sections,templateOptions: { deleteSection: deleteSection,openAddDocumentsDialog: openAddDocumentsDialog  } },sectionSortable: sections'>
     </div>

如果我需要做任何语法更改,请向我建议?我在谷歌上尝试过,但我的错误没有得到确切的解决方案。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...