var iSecond;
function OnInput(event) {
var TeVal=event.target.value;
iSecond= Math.ceil((Math.random()*1));
var t=setTimeout(function () {
var TeVal=event.target.value;
log(TeVal);
},iSecond*1000);
}
function log(TeVal) {
console.log(TeVal);
}
输入框延时调接口(防止不停调用)
最新推荐文章于 2022-09-13 18:21:38 发布