摘要: 二 template模板(代码复用) 2.1 基本使用: 定义 name 使用is <template name="info"> <button>获取授权</button> <text>我是文本</text></template>​<template is="info" /> 2.2 自定义模板内容 阅读全文
posted @ 2020-04-29 23:14 性感的沙皮 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 三 wxs 脚本语言(2种使用方式) 3.1 使用方式一: 在wxml文件中使用 <wxs module="item" >var sum = function (x, y) { return x + y}var num = 100//使用common.js方式导出module.exports = { 阅读全文
posted @ 2020-04-29 23:09 性感的沙皮 阅读(446) 评论(0) 推荐(0) 编辑