你的意思是把方法名是一个变量吗,如果是的话,尝试一下如下写法
let method = res.data.name this[method]
在data定义一个atomMethod,然后赋值那里用this.atomMethod,其他引用的地方也是