<script>
$.getJSON('https://test.engageport.com/rest/mobile/1', function (data) {
var ordercodes = $.map(data.data, function(entry){
Result= entry.ordercode; }
}
</script>我使用json url作为https://test.engageport.com/rest/mobile/1。在phone-gap中我得不到响应。我收到错误,因为数据“‘null”不是对象。如何解决这个问题。http url工作正常。HTTPS是问题所在。
发布于 2014-08-04 15:57:13
您的HTTPS url未提供有效的SSL证书,因此您的应用程序无法访问它。您可以使用有效证书,也可以在手机上安装不受信任的证书。
https://stackoverflow.com/questions/25113621
复制相似问题