5
否認我的視圖模型很簡單訪問從ko.toJSON
var viewModel = {
self: this,
description: ko.observable('some description'),
dateOfLost: ko.observable('01/01/2012'),
plaintiffFirmName: ko.observable('Johnson, Brand & Tall'),
claimantName: ko.observable(),
claimNum: ko.observable(),
getFormData:function() {
alert('event');
GetClaimData();
}
};
,但是當我試圖從HTML頁面
<pre data-bind="text: ko.toJS($data)"></pre>
我收到提示訪問模型 - 訪問被拒絕。任何人都可以告訴我爲什麼? 請注意,上述所有該行的字段正確綁定
非常感謝
太感謝你了 - 這也正是它被!!!! – Yuri