.. _wxml-import: :wxfrwk:`import 引用 ` ===================================== WXML 提供两种文件引用方式import和include。 import ------------------- import可以在该文件中使用目标文件定义的template,如: 在 item.wxml 中定义了一个叫item的template: .. code:: html 在 index.wxml 中引用了 item.wxml,就可以使用item模板: .. code:: html