[转载]分享:Jquery Mobile开发,PhoneGap访问手机app – dekins – 博客园.
JQuery Mobile:
1.官方简介
A unified, HTML5-based user interface system for all popular mobile device platforms, built on the rock-solid JQuery and JQuery UI foundation. Its lightweight code is built with progressive enhancement, and has a flexible, easily themeable design.
2.支持以下智能手机平台
3.Building PhoneGap apps with jQuery Mobile
PhoneGapis an HTML5 app platform that allows developers to author native applications with web technologies and get access to APIs and app stores. Applications are built as normal HTML pages and packaged up to run as a native application within a UIWebView or WebView (a chromeless browser, referred to hereafter as a webview). Since PhoneGap is frequently used in conjunction with jQuery Mobile, we wanted to offer a few tips and recommendations to help you get staretd.
The initial application document is loaded by the PhoneGap application by a local file:// URL. This means that if you want to pull in pages from your company’s remote server (phone home) you will have to refer to them with absolute URLs to your server. Because your document originates from a file:// URL, loading pages or assets from your remote server is considered a cross-domain request that can be blocked in certain scenarios.
Your ability to access cross-domain pages from within a Phone Gap jQuery Mobile application is controlled by two key things: $.support.cors
and $.mobile.allowCrossDomainPages
, and can also be influenced by the white list feature in later builds of PhoneGap.