vue監聽屬性

使用$watch,就是監聽到某個值發生變化,執行回調函數。

原文地址:https://www.cnblogs.com/Zhengxiaoxiao/p/10516375.html