当我使用我的代码加载页面时,我收到此错误:
<div class="container" >
<div class="row" id="content">
<p data-bind="click: clickme">CLICK</p>
</div>
</div>
var viewModel = function() {
var self = this;
self.clickme = function(){
console.log("Hello!");
}
}
ko.applyBindings(viewModel, document.getElementById("content"));
</script>
提前感谢您的帮助!