一、给data下的对象某个元素赋值: this.setData({ 'object.job':'前端' }) 二、给data中的数组某个元素赋值: this.setData({ 'arr[1].name':"桌子" })