const mixins = {
created () {
console.log('mixins created')
}
}
const mixins2 = {
created () {
console.log('mixins2 created')
}
}
const extend = {
created () {
console.log('extends created')
}
}
export default {
mixins: [mixins, mixins2],
extends: extend,
created () {
console.log('组件 created')
}
}

控制台输出:

extends只能继承一个
mixins可以多个

最新文章

  1. 可空类型(Nullable<T>)及其引出的关于explicit、implicit的使用
  2. 编译原理实习(应用预测分析法LL(1)实现语法分析)
  3. CentOS6.5安装配置SVN
  4. 8个经典炫酷的HTML5 Canvas动画欣赏
  5. 2014 Multi-University Training Contest 1
  6. c 函数及指针学习 10
  7. 在blade中定义一个可以被模版使用的变量
  8. android应用开发全程实录-你有多熟悉listview
  9. hibernate详解
  10. MySQL只恢复某个库或某张表
  11. 关于JS中涉及的常用类型转换及运算符表达式
  12. Spring学习日志之Bean的装配
  13. Bandit Wargame Level18 Writeup(interactive shell and .bashrc )
  14. Linux文件内容查阅 - cat, tac, nl, more, less, head, tail, od
  15. RabbitMQ通过Exchange.Direct、同一个队列绑定不同的routekey实现不同的消费
  16. luogu P4491 [HAOI2018]染色
  17. node调试工具--nodemon
  18. Mac下配置环境变量重启后不生效解决(.bash_profile vs .bashrc)(bash/zsh下不加载.bashrc问题解决)
  19. STL——空间配置器(SGI-STL)
  20. 为什么你学过Java却忘光了——记第一次助教同学见面会

热门文章

  1. classes could not be found: - android.support.v7.internal.app.WindowDecorActionBar问题的解决方法
  2. Use NSArray to specify otherButtonTitles?
  3. Distributed Cache Coherence at Scalable Requestor Filter Pipes that Accumulate Invalidation Acknowledgements from other Requestor Filter Pipes Using Ordering Messages from Central Snoop Tag
  4. Linux内核实践之序列文件【转】
  5. [置顶] Linux 虚拟地址与物理地址的映射关系分析【转】
  6. nginx+lua_module安装
  7. zlib、libzip、 libzippp 库编译(windows + cmake + vs2013)
  8. Selenium2+python自动化15-select下拉框【转载】
  9. 重启服务器“AH00558: apache2: Could not reliably determine the server's fully qualified domain name”问题的解决
  10. SSOJ 2316 面积【DFS/Flood Fill】