<input v-model="newItem(key,val)" type="text"/> computed:{ newItem:function(){ return function(key,val){ return key + " " + val } } }
原文地址:https://segmentfault.com/a/1190000016962393