如何根据何时itemToAdd javascript属性为空或不为空禁用/启用按钮
<input type="text" data-bind='value:itemToAdd, valueUpdate: "afterkeydown"' />
<input type="button" data-bind="click:$parent.addItem" value="add" />谢谢!
发布于 2013-12-25 16:31:07
在敲除中有一个enable绑定:
<input type="button" data-bind="click:$parent.addItem, enable: itemToAdd" value="add" />https://stackoverflow.com/questions/20774719
复制相似问题