Knockout.js 映射中的绑定尚未应用于视图

Knockout.js 映射中的绑定尚未应用于视图,knockout.js,Knockout.js,在me站点中,我希望我的表单输入具有默认文本值,但没有这样的运气 vm = { codeIncrementer: ko.mapping.fromJS({ fromNum: "1", toNum: "10", incrementerOutput: "", incrementerInput: "test code;<></" }) }; vm={codeIncrementer:ko.mapping.fromJS({fromNum:“1”,toNum:“10”,increme

在me站点中,我希望我的表单输入具有默认文本值,但没有这样的运气

   vm = { codeIncrementer: ko.mapping.fromJS({ fromNum: "1", toNum: "10", incrementerOutput: "", incrementerInput: "test code;<></" }) };

vm={codeIncrementer:ko.mapping.fromJS({fromNum:“1”,toNum:“10”,incrementerOutput:,incrementerInput:“测试代码;对于输入标记,使用
绑定,而不是
文本
绑定

<input type="text" data-bind="value: fromNum" ... />

而不是

<input type="text" data-bind="text: fromNum" ... />