jquery等价dom操作
2016-06-03
阅读 2 分钟
2.3k介绍 jquery 等价于 dom 原生操作。 empty() $("#id").empty() {代码...} append() $("#id").append() 这里的 append 可以使用 react 的 render 函数来做 {代码...} css() $(".tdxmask").css({ display: "none" }); {代码...} extend() $.extend({}, item.hot.style, {"background-image": "none" }) {代码...} sibings(...