update 能不能支持动态指定字段进行更新?

发布于 8 年前作者 chenli9096 次浏览最后编辑 8 年前来自 issues

如下:

doc.update 中能不能支持这种动态指定字段进行更新?

data: {

        `${this.data.phn}`: this.data.ph,

      },

2 回复
moxiulan
moxiulan1 楼6 年前

可以

xiulan42
xiulan422 楼6 年前

可以的