先用js格式货工具,格式下代码
https://www.jq22.com/jsgsh
然后注释25行,33行,72行,73行,76行,77行就行了,代码如下
switch (r.side) { case "left": e.css({ left: "-" + i + "px", right: "auto" }); //s["margin-left"] = "+=" + i; o.left = "+=" + i; break; case "right": e.css({ left: "auto", right: "-" + i + "px" }); //s["margin-left"] = "-=" + i; o.right = "+=" + i; break } switch (i.data("side")) { case "left": // u["margin-left"] = "-=" + o; // a.left = "-=" + o; break; case "right": // u["margin-left"] = "+=" + o; // a.right = "-=" + o; break }