Mobile and web


 Smart mobile devices have been able to rage, because they have Apple and Google offers SDK for third party developers to develop,

 Apple offers iOS SDK is based on the development of Object-C language,

 Google Android SDK provides a java-based application development language.

 

There is an advantage based on the development of native SDK:
a better user experience and interaction
2 without network, saving bandwidth costs
3 characteristics can give full play to the hardware and operating system

... Disadvantages:
between 1 porting difficulties
2 high maintenance costs and long development cycle difficult to debug
3 need to rely on third-party application store shelves audit

Web-based development mode and native SDK contrary ...

And now, the Native SDK applications to play the greatest effect smart phone features, and Web-based applications more suitable for some of the traditional Web site to establish a mobile Web version.



HTML5 standard applications defined in the mobile browser:

Canvas drawing

multimedia

Web Storage, Web SQL Database



Mobile Web framework

as support for HTML5 and Webkit With more and more Web developers began to study a Web-based application framework for mobile platforms, for example, based on jQuery Mobile, Sencha Touch ExtJS-based architecture, and can get through both Web and Native between channels
PhoneGap framework.

Currently there are two different modes of development of Web-based mobile HTML5 framework: traditional Web developers and Web-based component-based development.



Based on the traditional Web development model, that is, in the traditional Web sites, demonstrating its mobile version of the Web site according to the characteristics of mobile device platforms. At present the most embodies the advantages of Web development model framework is jQuery Mobile. By using the new features CSS3.0,
to Meia Queries a module implemented in any device can adaptively site simultaneously.

Component-based Web development is somewhat similar to rich client development model Ext provided, in this mode, almost all components are encapsulated within the view or the JavaScript, and then display the Web application through these components, this model is the best representatives Sencha Touch.

HTML5 local storage specification defines two important API:
Web Storage
during the session sessionStorage
localStorage stored in a local
Web SQL Database
...
.
.

LocalStorage.setItem

Guess you like

Origin www.cnblogs.com/Su-feng-address/p/12108558.html