Many friends will ignore the important part of nopcommerce source code, that is, the nopcommerce mobile version. In fact, it has been added to the mobile version since nopcommerce2.3, but it is disabled by default, you need to enable it in the integrated background settings. After enabling it, you can use iPhone, iPad, and other terminals to browse it. You can also use Firefox to simulate iPhone browsing, and install the User Agent Switcher in Firefox to implement it, because the mobile version of nopcommerce uses HTML5, all of them are mainly for touch screen terminals. The effect is as follows:
The nopcommere mobile edition uses HTML5 + MVC + jquery mobile and other technologies during development. Based on my understanding, this may become a trend in mobile phone development in the future.
1. Built on jquery and jquery UI class libraries, jquery Mobile provides front-end developers with a unified UI interface system compatible with all mainstream mobile device platforms. Outstanding elasticity, lightweight, and progressive enhancement features and accessibility. For more information, see http://jquerymobile.com/?http://www.jqmapi.com/
2. HTML5, as a new generation of HTML standards, also has its unique advantages.
How does HTML5 get started?
HTML5 is the result of W3C cooperation with whatwg.
Editor's note:W3C refers to World Wide Web Consortium.
Editor's note:Whatwg refers to the Web hypertext Application Technology Working Group.
Whatwg is dedicated to web forms and ApplicationsProgramW3C focuses on XHTML 2.0. On April 9, 2006, the two sides decided to cooperate to create a new version of HTML.
Rules for HTML5:
- The new features should be based on HTML, CSS, Dom, and JavaScript.
-
- Reduce the need for external plug-ins (such as flash)
-
- Better error handling
-
- More replace script Markup
- HTML5 should be independent of devices
-
- Development process should be transparent to the public
New Features
Some interesting new features in HTML5:
-
- Canvas elements used for painting
- Video and audio elements used for media playback
-
- Better support for local offline storage
-
- New special content elements, such as article, footer, header, NAV, Section
-
- New Form controls, such as calendar, date, time, email, URL, and search
Browser support
The latest versions of safari, chrome, Firefox, and Opera support some HTML5 features. Internet Explorer 9 will support some HTML5 features.
For more information, see: http://www.w3school.com.cn/html5
3. MVC implements the presentation layer and logicCodeAnd generate very clean HTML code, which is very important for mobile development, because the traditional web form method generates a lot of junk code, some mobile phones may have problems in display.
If you are interested in mobile phone development, you may wish to take a look at this content during the nopcommerce source code process.
Sharing is a kind of beauty. Copyright, reprinted please indicate the source of http://www.nopchina.net/