摘要:
二 template模板(代码复用) 2.1 基本使用: 定义 name 使用is <template name="info"> <button>获取授权</button> <text>我是文本</text></template><template is="info" /> 2.2 自定义模板内容 阅读全文
摘要:
三 wxs 脚本语言(2种使用方式) 3.1 使用方式一: 在wxml文件中使用 <wxs module="item" >var sum = function (x, y) { return x + y}var num = 100//使用common.js方式导出module.exports = { 阅读全文