摘要:
function getArea(r){ console.log(r); return Math.PI * r * r } function memoize(f){ let cache = {}; return function(){ let key = JSON.stringify(argumen 阅读全文
摘要:
function once(fn){ let down = false; return function(){ if(!down){ down = true; return fn.apply(this,arguments); } } } let pay = once(function(money){ 阅读全文
摘要:
getAuthCode(){ if (!this.disabledBtn) { this.disabledBtn = true; let n = 3; let time = setInterval(()=> { var str = '(' + n + ')' + '重新获取'; this.authC 阅读全文