function?main(){
????
}
main.prototype.move?=?function(){
???//內(nèi)容自行意淫
};
window.onload?=?function(){
???var?m?=?new?main();
???var?st?=setInterval(m.move(),1000);//動不了??或者說只動了一次
};用setInterval。幫我想辦法讓動畫動起來。
js使用setInterval實(shí)現(xiàn)動畫。
kofzxaaa
2016-10-20 13:02:31