支付宝小程序支持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'}); } });