摘要: function interV (fn, time) { let res = { target: '' // 需要注意:利用引用类型保证target一直是最新的 } function test () { fn() res.target = setTimeout(test, time); } test 阅读全文
posted @ 2021-11-11 11:02 乌卡拉卡 阅读(73) 评论(0) 推荐(0)