
微信小程序
谁想轻轻偷走我的吻
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
微信小程序正则验证手机号
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({原创 2017-07-12 11:36:58 · 2399 阅读 · 1 评论 -
【微信小程序】获取openid
//app.js App({ globalData:{ appid:'wx2d7e28aaf13bd10b', secret:'3a973698708e3cd13c736d96c3051aa2', }, onLaunch: function () { var that = this原创 2017-05-15 09:20:36 · 4148 阅读 · 1 评论 -
微信小程序获取指定页面的二维码
<?php header('Content-type: image/jpg'); $data = array(); $data['path']="pages/scanxq/jihe/index"; $data['width']=430; $data = json_encode($data); $res = wxHttpsRequest("https://api.weixin.qq.com/w原创 2017-07-24 16:04:22 · 594 阅读 · 0 评论 -
PHP微信小程序发送模板信息
<?php $openid = $_GET["openid"]; $form_id = $_GET["formId"]; $json_token=http_request("https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=XXX&secret=XXX"); $access_...原创 2018-05-08 18:13:55 · 597 阅读 · 0 评论 -
微信小程序canvas水印
const app = getApp() Page({ data: { }, onLoad: function (e) { wx.setNavigationBarTitle({ title: "神符" }) var ctx = wx.createCanvasContext('shenfu') ctx.drawImage("/images/"...原创 2018-07-16 20:56:29 · 2793 阅读 · 0 评论 -
微信小程序编解码base64
//index.js //获取应用实例 const app = getApp() //下面是64个基本的编码 var base64EncodeChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; var base64DecodeChars = new Array( ...转载 2018-07-17 03:27:13 · 17675 阅读 · 2 评论