摘要:
filter:过滤器,基本的概念这里就不再复述,官方文档很详细 全局使用filter: 新建一个filter.js文件 const filters = { reverseMsg:msg=> msg+',this is filter', concatMsg:msg=>msg+',this is fil 阅读全文
摘要:
使用场景:当组件层级较深,然后需要使用到根组件中的某些值,就需要使用到依赖注入 依赖注入的基本内容就是关于 provide 和 inject 根组件中使用provide export default { name: 'app', data(){ return { msg:'Welcome to Yo 阅读全文