支付宝小程序笔记
?
支付寶小程序支持id寫法
#Test{background: #000}
<view id="Test"></view>
帶參數跳轉
catchTap,ontap <view class="li-text {{nav[0].style}}" data-hi="Alipay" onTap="urlH"> urlH:function(e){ console.log(e); }, 頁面跳轉(導航欄):navigateTo, url:function(url){my.navigateTo({url:url})},?
遠程獲取數據 httpRequest my.httpRequest({url: 'http://httpbin.org/post',method: 'POST',data: {from: '支付寶',production: 'AlipayJSAPI',},dataType: 'json',success: function(res) {my.alert({content: 'success'});},fail: function(res) {my.alert({content: 'fail'});},complete: function(res) {my.hideLoading();my.alert({content: 'complete'});} });?
? 緩存轉載于:https://www.cnblogs.com/wesky/p/9548041.html
與50位技術專家面對面20年技術見證,附贈技術全景圖總結
- 上一篇: 支票丢了能取出钱来吗
- 下一篇: 提取手机游戏资源 特效 显存分析工具 无