摘要: WXML提供模板(template),可以在模板中定义代码片段,然后在不同的地方调用减少冗余代码。 1.1定义模板 1.1.1、创建模板文件夹 1.1.2、使用 name 属性,作为模板的名字。然后在<template/>内定义代码片段,如: <!-- 使用 name 属性,作为模板的名字 --> 阅读全文
posted @ 2019-09-19 23:48 不睡 阅读(27276) 评论(0) 推荐(3) 编辑