1、propertychange:实时监听input输入框值的变化事件
$(document).off("input propertychange","[name='mdc_mrtpm_tpName']").on("input propertychange","[name='mdc_mrtpm_tpName']",function(){
console.log(1);
});
实时获取input框的值
$(document).off("input propertychange","[name='mdc_mrtpm_tpName']").on("input propertychange","[name='mdc_mrtpm_tpName']",function(){
console.log(1);
});
实时获取input框的值
本文标题:jQuery之input框
本文链接:https://www.haomeiwen.com/subject/ylhdqktx.html
网友评论