小程序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"/>
import
<!--header.wxml -->
<template name="item">
<text>{{text}}</text>
</template>
<import src="../commonWxml/header.wxml"/> <template is="item" data="{{text:'forBar'}}"/>
<include src="../logs/logs.wxml"/>