小程序 简单的动画效果
//动画效果 https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/Animation.html // 示例1:实现的动画:把 view 放大两倍; onShow: function () { // https://developers.weixin.qq.com/miniprog
//动画效果 https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/Animation.html // 示例1:实现的动画:把 view 放大两倍; onShow: function () { // https://developers.weixin.qq.com/miniprog
$array_url = parse_url($url); $act_code = substr($array_url['query'],9);
微信小程序默认值是'content-type': 'application/json' 需要改成'content-type': 'application/x-www-form-urlencoded'
获取header中的参数 $appkey = Request::instance()->header();
在微信开发者工具中运行获取的 formId 为 the formId is a mock one ,要获得真实有效的 formId 需要在真机上运行。
1.拨打电话 wxml: call: function (e) { var phone = e.currentTarget.dataset.phone; if (!phone) return false; wx.makePhoneCall({ phoneNumber: phone }); }, 2.打开地图 openMap: function (e) { v
靠最顶部 "navigationStyle": "custom"
wxml 点击复制 js copyText:function(e){ console.log(e) wx.setClipboardData({ data: e.currentTarget.dataset.text, success: function (res) { wx.getClipboardData({ success: function (res)
1、curl以GET方式请求https协议接口 //注意:这里的$url已经包含参数了,不带参数你自己处理哦GET很简单 function curl_get_https($url){ $curl = curl_init(); // 启动一个CURL会话 curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($c