我收到这个 JS 错误:ReferenceError: event is not defined when I try to pass the event object to click binding when I use Firefox 23. 在 Chrome 下一切正常
这里的代码:
<!-- ko foreach: entries -->
<tr data-bind="click: function(){ $parent.expandRow($data, event) }">
...
</tr>
<!-- /ko -->
vm.entries.expandRow = function(entry, event){
...
}