The Bag tag splits the string into an array and returns a Bag and a bag array containing the array of data.
Splits the string into an array and returns a Bag containing the array data ):
Operation
<Bag id=test act=splitgap="/">a/b/c/d</Bag>
Returns the string a/B/c/d array to the bag test. The split values are obtained based on the keyword test0, test1, test2. ..
Output split Value
<for end=0 start=@{test:getWidth}> <b>@{test:test@{for:getSuffix}},</b> </for>
Effect
Complete code
<Html> <title> Splits a string into an array and returns a Bag containing the array data. </title>
(Example file: _ samples/bag_split.html)
Try it. It's very Easy!
Download and description of light platform Resources
Platform and the latest development manual free download: http://download.csdn.net/detail/tx18/8464425
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 note thatDownload the latest version