2019-07-06转| 微信小程序开发教程1:微信小程序官方工具: https://mp.weixin.qq.com/debug/w ... tml?t=1476434678461 2:微信小程序简易教程: https://mp.weixin.qq.com/debug/wxadoc/dev/?t=1476434677599 3:微信小程序设计指南: https://mp.weixin.qq.com/#easywechat
2019-07-03微信小程序倒计时wxml 倒计时:{{countDownNum}}s js Page({ /** * 页面的初始数据 */ data: { timer: '',//定时器名字 countDownNum: '60'//倒计时初始值 }, onShow: function(){ //什么时候触发倒计时,就在什么地方调用这个函数 this.countDown(); }, coun
2019-02-02小程序时间戳转时间// util.js //时间戳转换成日期时间 function js_date_time(unixtime) { var dateTime = new Date(parseInt(unixtime) * 1000) var year = dateTime.getFullYear(); var month = dateTime.getMonth() + 1;
2019-02-02小程序正则验证手机号formSubmit: function(e) { var tel = e.detail.value.tel var myreg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1})|(17[0-9]{1}))+\d{8})$/; if (!myreg.test(tel)) { wx.showToast({ title:
2019-01-17微信小游戏开发(一)webstorm 配置 language.../script 选择版本 es6 安装babel 安装nodejs使用npm下载babel 安装babel(es6转为es5)//https://www.babeljs.cn npm install --save-dev babel-cli babel-preset-env npm install -g --sa
2019-01-03小程序 | 生成海报并保存到相册index.js //index.js //获取应用实例 Page({ data: { cardInfo: { avater: "https://tool.wangmingchang.com/api/pic/rand_pic.html?name=bing&type=1", //需要https图片路径 qrCode: "https://ws3.sinaimg.