谢谢大家,自己解决了; let $a = 'money'; this[$a] = '123'; 或者: <input placeholder="请输入" :value="phone" @input="onInput($event,'phone')"></input> //输入监听 onInput(event,$column){ this[$column] = event.detail.value; }
1 个回复
晓鱼顶瓜瓜 (作者) - 做最好的自己
谢谢大家,自己解决了;
let $a = 'money';
this[$a] = '123';
或者:
<input placeholder="请输入" :value="phone" @input="onInput($event,'phone')"></input>
//输入监听
onInput(event,$column){
this[$column] = event.detail.value;
}