"urlCheck": false,不检查域名,不检查TLS版本
data: {
newArticle: [],
},
onReady: function () {
var that = this;
wx.request({
url: 'https://www.***.com/applet',
method: 'GET',
dataType: 'json',
data: {},
header: {
'content-type': 'application/json' // 默认值
},
success: function (res) {
that.setData({newArticle: res.data})
}
})
},
<navigator url="" wx:for="{{newArticle}}">
<view class="title">{{item.title}}</view>
</navigator>