new Vue({ el: '#pokemon', data () { return { level: 50, base: 60, individual: 31, effort: 252 } }, computed: { power () { const {base, effort, level, individual} = this // ((种族值×2+基础点数÷4+个体值)×等级÷100+5)×性格修正 return (base * 2 + effort / 4 + individual) * level / 100 + 5 } } })