if(navigator.userAgent.indexOf(‘Android‘) > -1){ $("#sign").on("input", function(){ //console.log(this.value); $(".num").html(self.globalNum - this.value.length); }); }else{ $("#sign").on("keyup compositionend", function(){ //console.log(this.value); $(".num").html(self.globalNum - this.value.length); }); }
时间: 2024-10-09 09:15:42