tabCode workBench data thisruleForm想转为:workBench thisruleForm用js怎么实现
您可以使用以下代码将 {tabCode: 'workBench', data: this.ruleForm} 转换为 {workBench: this.ruleForm}:
const newObj = {workBench: this.ruleForm};
这将创建一个名为 newObj 的新对象,其中包含一个名为 workBench 的属性,其值为 this.ruleForm 的值。
原文地址: https://www.cveoy.top/t/topic/iHwc 著作权归作者所有。请勿转载和采集!