Vue侦测相关api的实现方法 vm.$watch用法:vm.$watch(expOrFn,callback,[options]),返回值为unwatch是一个函数用来取消观察;下面 Vue侦测相关api