测试标题标题十个字是十个字么
 发布于 7 年前  作者 front-end-captain  2355 次预览  最后一次回复是 7 年前  来自 客户端测试 

hello

hello world

function throttle(method, context, ...args) {
	method.timer && clearTimeout(method.timer);
	method.timer = setTimeout(() => {
		method.call(context, args);
	}, 300);
}
5 回复
front-end-captain

测试回复

helle world

const throttle = (method, context, ...args) => {
	method.timer && clearTimeout(method.timer);
	method.timer = setTimeout(() => {
		method.call(context, args);
	}, 300);
};
front-end-captain

测试回复

helle world

const throttle = (method, context, ...args) => {
	method.timer && clearTimeout(method.timer);
	method.timer = setTimeout(() => {
		method.call(context, args);
	}, 300);
};