最新回答 / qq_与我无关N_0
function promiseAnimate(ball,distance){ return new Promise(function(resolve,reject){ function _animate(){ setTimeout(function(){ var marginLeft = parseInt(ball.style.marginLeft,10) if(marginLeft === distance){ resolve() } ...
2018-10-08
跟着老师的脚步 ,敲的代码:https://github.com/huohuanyuan/node-train-1
2018-09-26