摘要:
new Promise(function(resolve){ console.log('马上执行for循环'); for(var i = 0; i < 1000; i++){ resolve(); console.log(i); } }).then(function(){ console.log(' 阅读全文
posted @ 2020-04-09 22:27
盘思动
阅读(954)
评论(0)
推荐(0)
摘要:
``` 文字 使用第一种的方法e.target.dataset.action 会获取当前点击的元素的action,则获取图片上的action,图片上没有action便取的是undefined; 使用第二种的方法e.currentTarget.dataset.action 会获取有事件的那个元素,即view,所以获得“father” ``` 阅读全文
posted @ 2020-04-09 20:48
盘思动
阅读(5215)
评论(0)
推荐(0)

浙公网安备 33010602011771号