1.javascript
$("#username").bind("input propertychange",function(){ console.log(this.value) alert(this.value) }) $("#username").on("input",function(){ console.log(this.value); alert(this.value) })