支付寶小程序支持id寫法json
#Test{background: #000}小程序
<view id="Test"></view>緩存
帶參數跳轉ide
url:function(url){
my.navigateTo({
url:url
})
},
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'}); } });