这种情况可以给mousemove中的方法加一个运行条件 ifDrag if(ifDrag){ ...mousemove content... }; 当运行了mousedown的时候为ifDrag == true,mouseup之后变为 ifDrag == false。
这种情况可以给mousemove中的方法加一个运行条件 ifDrag
当运行了mousedown的时候为ifDrag == true,mouseup之后变为 ifDrag == false。