Skip to content

Latest commit

 

History

History
22 lines (7 loc) · 260 Bytes

组件和template.md

File metadata and controls

22 lines (7 loc) · 260 Bytes

template 和 组件的区别

  • template只是 wxml 片段

  • 组件可以包含逻辑

  • template 传参没有默认值和生命周期

  • template 没法形成库

  • 已进入方式不同

  • template 没有js 文件 逻辑要写在父级页面上