Expression and bag, expression bag
Expression and schoolbag
Expression
In the previous section, we used@{Sys: getWidth}Expression, which indicates the width of the bag (sys) (number of string values in sys ).@{Is the expression start character,} is the end character, sys is the bag name (id), getWidth is the keyword, and the entire expression is 33
Schoolbag
WebEasy loads information and data according to certain rulesSchoolbag, EachSchoolbagThere is a unique name (bagid, such as sys and pPage) on the current page, and the attribute values of several fixed keywords:@{Bagid: getWidth} (width ),@{Bagid: getLength} (length ),@The attributes {bagid: getSuffix} (subscript) are used to determine the current position and status. The width and length are automatically changed. The subscript can be described later.BagLabel.
You can use@{Id: key.
Start character |
Schoolbag name |
Delimiter |
Keywords |
Terminator |
@{ |
Id |
: |
Key |
} |
Expressions can be nested, for example:@{Id:@{Id1: key} indicates that the key value is taken from the bag id1 and the result is taken from the bag id as a keyword.
When you do not know what information is contained in your schoolbag, you can retrieve keywords by location, such:@{Bagid: 0 },@{Bagid: 1 },@{Bagid: 2 }.... The example above is to list all values in the system bag (sys.
You can learn how to use your schoolbag.
Default schoolbag
L system information schoolbag SYS (example file: _ samples/sys.html)
L The schoolbag pPage that receives parameters submitted on the previous page (example file: _ samples/pPage.html, _ samples/showPage.html)
L public schoolbag (example file: _ samples/public.html)
HTTP header information schoolbag head (example file: _ samples/head.html)
Download and description of light platform Resources
Platform and the latest development manual free download: http://download.csdn.net/detail/tx18/8381859
Development Instance:Light B2C e-commerce websites, Free download: http://download.csdn.net/detail/tx18/8318585
The light-Open Platform will occasionally upgrade to provide more powerful and Easy functions for you. Please pay attention to the latestDevelopment Manual