小程序wxml文件引用方式

import
<!--header.wxml -->
<template name="item">
  <text>{{text}}</text>
</template>
<import src="../commonWxml/header.wxml"/>
<template is="item" data="{{text:'forBar'}}"/>
include
<include src="../logs/logs.wxml"/>

 

posted @ 2018-10-03 10:18  LaLaLa_heng  阅读(938)  评论(0编辑  收藏  举报