删除对象的指定属性


this.paramData = {
pay_status:0,
a_type:1
};

uniapp写法: this
.$delete(this.paramData,"pay_status");

vue3 写法: delete (this.paramData.pay_status);

 

posted on 2023-03-06 08:39  小虾米吖~  阅读(372)  评论(0编辑  收藏  举报