实现父组件调用子组件方法:
基本思路:父组件可以通过props把自己的函数方法传递给子组件调用,那么子组件通过这个函数把自己的组件实例传回给父组件,父组件只需要保存这些实例便可以调用子组件的方法
父组件
|
|
子组件
friends子组件
|
|
chatWindow子组件
|
|
参考链接 https://blog.csdn.net/qq_35104586/article/details/81612127
村长博客
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent: meta: false pages: false posts: title: true date: true path: true text: false raw: false content: false slug: false updated: false comments: false link: false permalink: false excerpt: false categories: false tags: true