2023年11月27日

js 闭包使用一例

摘要: 有如下js: function startTimer(sentence) { alert('start'); sentence.longPressTimer = setTimeout(function() { alert(sentence); //此处sentence为undefined }, 10 阅读全文

posted @ 2023-11-27 15:27 空明流光 阅读(2) 评论(0) 推荐(0) 编辑

导航