【发布时间】:2021-03-06 00:46:14
【问题描述】:
我有以下html:
<a href="javascript:void(0)" data-bind="click: update.bind($data, '{ "label": "dwsqa" }')">Yes / No</a>
和js:
self.update = function (config) {
console.log(config);
};
我有错误:
Uncaught Error: Unable to parse bindings.
Message: SyntaxError: Invalid or unexpected token;
Bindings value: click: update.bind($data, '{
这里有什么问题?我该如何解决这个问题?
【问题讨论】:
标签: knockout.js