|
[多端开发]
连接错误,请检查网络或者请求配置是否正确
[复制链接]
function testAjax(){
var opts={url:'https://xterp**.**/login/findConfig.at',type:'get'};
api.ajax({
url: opts.url,
data: {},
report: true,
method: opts.type,
cache: false,
timeout: 30,
returnAll: true
}, function (ret, err) {
console.log('req.ret '+JSON.stringify(ret));
console.log('req.err '+JSON.stringify(err));
});
}
window.apiready=function(){
testAjax();
}
config.xml 也加了下面一行
<preference name="checkSslTrusted" value="false"/>
就这么段代码,编译后在安卓上 提示 连接错误,请检查网络或者请求配置是否正确 。
ios手机就正常访问了。
手机问题? android 13
|
|