var repeat="moveMessage('"+elementID+"',"+final_x+","+final_y+","+interval+")";movement = setTimeout(repeat,interval);repeat的值应该是moveMessage('element',final_x,final_y,interval),没有引号,那setTimeout函数中的repeat参数应该不会成功调用才对啊?
慕哥9229398
相关分类