1. 导入组件:在需要使用组件的页面或其他组件中,使用 <import src="path/to/example"/> 标签来导入定义好的组件

  2. 使用组件:在页面的 .wxml 文件中,使用 <example></example> 标签来调用组件