var timer = setTimeout("moveEleme('" + eleID + "' ," + leftMar + "," + topMar + "," + interval + ")", interval)这是我调用时候传的参数:
moveEleme("test", 200, 900, 10);
setTimout(字符串类型的函数名,间隔时长);
看了很久很久是这样劝服自己的:"moveEleme(' " + eleID + " ' ," + leftMar + "," + topMar + "," + interval + ")"
也不知道对不,麻了!
必须记下来,以后确认之后再改。
标签:eleID,leftMar,interval,拼接,moveElement,字符串,topMar,moveEleme,发狂 From: https://www.cnblogs.com/zx3180/p/17087344.html