6.2 Development and improvement
Please learn the basic label language and expressions in the development manuals in the same package
6.3 Proficient in mobile app service program development
Familiar with the rules and development examples for mobile apps (JSON format) for the light-open platform
In addition to the basic development tag language and expressions (see the development manuals in the same download package), the Lite platform is specifically designed for the most commonly used JSON text format development in mobile apps:
? The file name extension must be JSON (for example: One.json) or JSP file name extended with Jspeasy
? The contents of the file must be in a closed JSON format, while static content can be written directly in JSON format, such as:
{“item”: {<chtml>… …</chtml> },”other”:”other value”}
? The Value property parameter represents the output without quotation marks, such as:
<price value>@{item:price}</price>
Output: "Price": 51.24
? The List property parameter indicates that the output is in an array-list format, and the end property parameter represents the position of the end of the arrays (equal to the for end value)
< for bags=Item End="@{item:getlength}"> <item list= "@{item:getsuffix}" end="@{item:getlength}" > <!--The List property parameter indicates that the output is in an array-list format, and the end property parameter represents the position of the end of the arrays (equal to the For end value) - <name>@{item:name}</name> < price value>@{item:price}</price > <unit>@{item:unit}</Unit> </Item></for >
? The Nolast property parameter represents the output of a comma behind the array
< for bags=Item End="@{item:getlength}"> <item list= "@{item:getsuffix}" end="@{item:getlength}" nolast> <!--The List property parameter indicates that the output is in an array-list format, and the end property parameter represents the position of the end of the arrays (equal to the For end value), and the Nolast property parameter represents the output of a comma-to - <name>@{item:name}</name> < price value>@{item:price}</price ><!--The Value property parameter indicates the output without quotation marks-- <unit>@{item:unit}</Unit> </Item></for ><tatol>@{item:getlength}</tatol><!--The front of the nolast is used to output a comma---in front of this group- -
? The Nokey property parameter indicates that the array name is not output
< for bags=Item End="@{item:getlength}"> <item list= "@{item:getsuffix}" end="@{item:getlength}" Nokey> <!--The List property parameter indicates that the output is in an array-list format, and the end property parameter represents the position of the end of the arrays (equal to the For end value), the Nokey property argument does not output the array name -- <name>@{item:name}</name> < price value>@{item:price}</price ><!--The Value property parameter indicates the output without quotation marks-- <unit>@{item:unit}</Unit> </Item></for >
? A non-named array can be directly exhausted as a string output
<cHTML><!--formal JSON-formatted content, no-name array is directly exhausted as a string output.< for bags=Item End="@{item:getlength}"> <if x="@{item:getsuffix}" else=1> <bag id=pPage x=0><we name=name>"@{item:name}"</We></bag> <bag id=pPage><we name=name>@{ppage:name}, "@{item:name}"</We></bag> </if></for ></cHTML>[@{ppage:name}]
? Empty array Direct output:
[]
The whole set of rules still highlights easy and can be mastered almost at a glance. Learn with examples in the rear
Related Resources Download:
Mobile app server development from getting started to mastering: http://download.csdn.net/detail/tx18/8741611
Quickly build a mobile App server: http://download.csdn.net/detail/tx18/8737507
Light on the platform will not be regularly upgraded to provide you with more powerful and easy features, please pay attention to download the latest version: http://download.csdn.net/user/tx18
improved to proficient in mobile (Android, IOS) App app service program development