貌似此处的 *4 放到取整函数之后更好,我按照视频中代码编写出问题了。效果如下:写成: var randx = parseInt(Math.floor(Math.random()))*4;就好了 查看完整描述