首页 > 其他 > 详细

回车与失去焦点事件冲突的处理

时间:2021-05-08 22:39:50      阅读:32      评论:0      收藏:0      [点我收藏+]

技术分享图片

 

 ========================  实际代码 ===============================

$("#inputCell").blur(function () {
var newValue = $("#inputCell").val();
if(row[field] != newValue){ //如果改变放出保存按钮
  $("#save_payService").attr("disabled", false);
}
if(newValue == "" && field == "itemValue") {
  newValue = 0;
}
row[field] = newValue;
  $(this).remove();
$(‘#payServiceTbl‘).bootstrapTable(‘updateCell‘, {
  index: upIndex,
  field: field,
  value: newValue
  });
}).keyup(function () {
  if (event.keyCode == 13) {
    $(this).blur();
  }
});

  

回车与失去焦点事件冲突的处理

原文:https://www.cnblogs.com/zhihongming/p/14746104.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!