//让某段代码延时执行
function delayRun(code, time) {
var t = setTimeout(code, time);
}
应用举例:
<input type="button" name="query" value="统计" class="long_button" onClick="return delayRun('onQuery()', 1000);">
//让某段代码延时执行
function delayRun(code, time) {
var t = setTimeout(code, time);
}
应用举例:
<input type="button" name="query" value="统计" class="long_button" onClick="return delayRun('onQuery()', 1000);">