第一种办法

$('#productName').bind('input propertychange', function() {
   
	console.log(123);
})

更多推荐

jquery实现input输入框实时输入触发事件代码(最全)