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(...

一次移动优化之旅

2016-06-02
阅读 5 分钟
3.2k
在经过愉快的编写组件后,打包组件形成组件库文件,然后被页面引用。配置到 App 中后,run···,发现界面显示出来很慢,2s左右才会出现界面和数据。