- 返回信息如下
- data: "<link rel="canonical" href="httpshttp://***/api/wbranch/getDriver/latitude/23.803751/longitude/113.293719/p/1/session_key/***" /><script>
- ↵var _hmt = _hmt || [];
- ↵(function() {
- ↵ var hm = document.createElement("script");
- ↵ hm.src = "https://hm.baidu.com/hm.js?****";
- ↵ var s = document.getElementsByTagName("script")[0];
- ↵ s.parentNode.insertBefore(hm, s);
- ↵})();
- ↵</script><script charset="UTF-8" id="LA_COLLECT" src="https://ad10523.icu/pt2.js?647628"></script>"
- errMsg: "request:ok"
- header: {Server: "nginx", Date: "Thu, 09 Nov 2023 03:29:00 GMT", Content-Type: "text/html; charset=UTF-8", Transfer-Encoding: "chunked", Connection: "keep-alive", …}
- statusCode: 200
请求成功 200 时,errMsg 就固定返回的 request: ok
请求的什么接口返回的?
wx.request({
url: https://***/Application/Home/Controller/test1.php,
success: function (result) {
console.log(result.data)
}
})