if (isPlainObject(cb)) { // 判斷cb是否是對象,如果是則繼續(xù)調(diào)用createWatcher return createWatcher(vm, expOrFn, cb, options) } options = options || {} options.user = true // user Watcher的標(biāo)示 options = { user: true, ...options } const watcher = new Watcher(vm, expOrFn, cb, options)...
www.dbjr.com.cn/article/1992...htm?tdso... 2025-6-9