---
title: "jmobile+phonegap加载数据问题"
author: "gebobby"
date: "2014-07-21T16:20:11Z"
tags: []
categories: ["移动开发"]
slug: "jmobile-phonegap"
draft: false
lastmod: "2014-07-21T16:20:11Z"
id: 2094591
url: "https://gebobby.iteye.com/blog/2094591"
---

通过AJAX加载异地数据时由于服务端工程和客户端工程不是相同工程，因此在AJAX加载异地数据时总数返回ERR0R，在测试环境使用

localhost加载数据成功，使用ip获取数据失败。
解决问题
将jquery mobile 整合phonegap，取消异地加载数据的限制。