问题描述
我正在将淘汰赛升级到 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 (将#修改为@)