代码拉取完成,页面将自动刷新
define([], function(){
// module:
// dojo/throttle
// summary:
// This module provide a throttler
return function(cb, wait){
// summary:
// Create a function that will only execute once per `wait` periods.
// description:
// Create a function that will only execute once per `wait` periods
// from last execution when called repeatedly. Useful for preventing excessive
// calculations in rapidly firing events, such as window.resize, node.mousemove
// and so on.
// cb: Function
// The callback to fire.
// wait: Integer
// time to delay before allowing cb to call again.
var canrun = true;
return function(){
if(!canrun){
return;
}
canrun = false;
cb.apply(this, arguments);
setTimeout(function(){
canrun = true;
}, wait);
};
};
});
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。