文件名称:jQuery Mobile
文件大小:2.11MB
文件格式:PDF
更新时间:2015-11-26 06:58:38
jQuery mobile
Mobile applications come in two basic flavors: native applications, which are compiled programs that run natively on the device, and mobile web applications, which run inside a web browser on the device. Native applications get almost all of the press these days, especially given the financial success of the iTunes App Store and the Android Market. And with good reason, as native applications have many advantages: they are fast, have access to all of the power of the platform they are built for, and so forth. However, native applications suffer from one important limitation: they are not portable. If you want to make your application available on multiple platforms, you either have to write it in multiple languages (resulting in multiple code bases to maintain) or use a platform abstraction layer like Titanium or PhoneGap. Mobile web applications, on the other hand, are created in HTML, CSS, and JavaScript, and run in the web browser on the mobile device. This means one code base to maintain, but mobile web applications still need to account for variations in web browsers across platforms. Enter jQuery Mobile. Based on the popular jQuery JavaScript library, jQuery Mobile is designed to create mobile web applications that function on a broad range of devices. With jQuery Mobile, it is possible to quickly create mobile web applications that look and behave consistently across all supported devices, and that have advanced user interface capabilities. jQuery Mobile gives the developer a standard set of layouts, user interface widgets, and interactions, as well as a rich API for applying and extending them. jQuery Mobile is not yet in production—as of this writing, it is in its Alpha 4 release, with the beta coming soon. Even so, the library already has a broad set of features and is remarkably stable. In fact, I have already used it in one production project with great success, and if you review posts on the jQuery Mobile forums, you’ll see that there are many people using jQuery Mobile in production. As jQuery Mobile advances, we hope to update this ebook to cover new features and provide new tips and techniques.