小程序wxml文件引用方式

前端之家收集整理的这篇文章主要介绍了小程序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"/>

猜你在找的XML相关文章