computed和watch区别 用户1832929600214 2023-04-27 87 阅读1分钟 computed:1.变量不用在data里声明 2.支持缓存(变量变化,才能重新计算) 3.不支持异步 watch:1.变量要在data里声明 2.不支持缓存 3.支持异步