计算属性关键词: computed。 计算属性在处理一些复杂逻辑时是很有用的。 可以看下以下反转字符串的例子: Can Vue computed or watch body's scrollHeight?
確定! 回上一頁