Expression and bag, expression bag

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.