0
Im在Knockout验证中遇到问题。我试图让我的“名称”输入文本框仅为文本,ive在谷歌上搜索,但似乎找不到我能理解的任何东西。Knockout验证仅文本
有人可以请帮忙。
淘汰赛代码
self.addProduct = function() {
self.modelView.Id("");
self.modelView.Name("");
self.modelView.Address("");
$('#addCustomer').modal('show');
}
我拉网模型内部代号
<p>Name: <input data-bind="value:modelView.Name" /></p>
<p>Address: <input data-bind="value:modelView.Address" /></p>