KnockOut下的离开检测
<input type="text" class="form-control" data-bind="event:{ blur:$root.checkDuplicate }" value="@Model.DeptName" name="DeptName" id="DeptName" placeholder="客户简称" />*
var contactVM = function(){ var self = this; self.checkDuplicate = function(){ } }
既可
posted on 2017-10-20 11:34 LovlyPuppy 阅读(115) 评论(0) 编辑 收藏 举报