小程序转uni-app用到的一些方法

setData: function (obj) {
    let that = this;
    Object.keys(obj).forEach(function (key) {
        that.$set(that.$data, key, obj[key])
    });
},
相关文章
相关标签/搜索