摘要
针对移动Web开发中跨平台与数据交互两大关键问题,设计了一种利用PhoneGap为中间件、jQquery Mobile为UI框架和Android等手机终端系统所组成的移动Web开发框架,并提出了一种利用AJAX、JSON和HTML5等相关技术实现移动Web客户端与服务端之间跨域数据交互的通用方案。改进了AJAX受同源限制不能跨域交互的缺陷,避免使用JSONP跨域数据交互协议,提升了数据交互过程的安全性,同时解决了移动设备的跨平台等问题,可供从事移动Web开发的人员在实现数据交互过程中参考。
Cross-platform and data inte-raction are two key problems in mobile Web development, a mobile Web development framework is proposed that consists of three parts, which are PhoneGap middleware, j Qquery Mobile UI framework and Mobile terminals. Meanwhile, a common approach is proposed using AJAX, JSON and HTML5 to implement cross-domain data interaction between the mobile Web client and server. This method improves the defects of AJAX that it cannot cross domain interaction because of homologous restriction, avoids using JSONP cross-domain data exchange protocol to enhance the security of the data exchange process, and solves the problem of cross platform mobile device. It provides reference for the personnel engaging in developing the process of data interaction implementation in the field of mobile Web.
出处
《计算机工程与设计》
CSCD
北大核心
2014年第5期1827-1832,共6页
Computer Engineering and Design
基金
国家自然科学基金项目(60803160)