小程序wxml文件引用方式

时间:2018-10-04 09:58:52   收藏:0   阅读:135
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"/>

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!