Recently there are mobile app projects, selected Hybrid framework Cordova and APP Framework framework development.
Originally should be from the configuration gradually began to write, but because the work time is too busy, this period of time can not spare, only according to the mood and interest, think of where to write, the front part of the later slowly fill up.
APP Framework the previous is called Jqmobi Note that you do not confuse with JQuery Mobile, they are two different frameworks, at first I was really confused for 0.01 seconds.
Here I first translation of the QuickStart part, one is the use of their own work, and the other is also want to practice English, the most important thing is the memory of this period of time dropped too much, every time after reading again to look again, write down at least look at the Shunliu point.
The original English is here: http://app-framework-software.intel.com/documentation.php
Intro, Quickstart (Introduction--Quick Start)
When using the App Framework, you can only use a valid selector set by the user. To see a list of all valid selectors, click on the copyright. The APP Framework does not support JQuery's own implementation of custom pseudo-classes (by: pseudo-class should be pseudo, officially written psuedo, foreigners also have typos AH) selector (press: see here). The next few examples can help developers speed up development.
First, insert the app Framework into the page
<script src="//cdn.app-framework-software.intel.com/2.1/appframework.min.js" type= " Text/javascript "></script>
The App Framework runs by adding elements to a "container" (bucket). All elements within the container can use APP Framework API functions that can help speed development.
Using the APP Framework, you first have to learn to call the $ () function with parameters, and those parameters can be one of the following.
- String-can be an element of the id "#id", Class ". Foo", combining "#id. Foo", or an HTML string "<div id= ' foo ' ></div>"
- Element-This creates a new app framework object and adds the element to the container.
- Array/object This creates a new app framework object and adds all the items of those arrays to the container.
- Function-This performs this function when the domcontentloaded event is triggered, or immediately after the instance has been generated.
You can also pass an extra (additional again by the official clerical error as a addtional, or, at least, the whole world to see, can not be careful) parameters, allowing you in a "context" inside to search/filter it.
$ ("#foo"); Find the elements of id= "foo"; $ ("div"); Find all the div in the page; $ (". Foo"); Find all elements of classname = "Foo"; $ ("#foo span"); Find id= "all spans in foo"
Next, we'll find all the listings (<li>) and add the Foo class to it.
$ ("Li"). addclass ("foo");
Not to be continued ...
Translation APP Framework 2.1 (1) Quickstart (not finished)