Struts provides five tag libraries, namely: HTML, Beans, Logic, Template, and Nested.
Tag Library
Description
HTML tags
Used to create HTML input forms that interact with the Struts framework and other corresponding HTML tags
Bean Label
used when accessing JavaBeans and its properties, and defining a new bean
This article mainly introduces the differences and comparison between the Thinkphp template Tag if and eq, and analyzes the differences between the Thinkphp template Tag if and eq for variable comparison, for more information about the Thinkphp template
The defined tag of the ThinkPHP template engine is usedDetermine whether a constant has been defined.The defined tag of ThinkPHP is used to determine whether a constant has been defined. Its functionEquivalent to the defined () function in PHP. The usage of the defined label is as follows:
Define a constant in a module operation (such as Index/display) and out
ThinkPHP template IF label usage details. The IF tag of ThinkPHP can be used to define complex condition judgments, for example, ifcondition ($ nameeq1) OR ($ namegt100) value1elseifcondition $ nameeq2value2elsevalue3if note ThinkPHP IF Tag can
Used to define complex condition judgmentsFor example:
value1
value2
value3
Note: The condition attribut
Phpcms v9 template making common code collection
1. Intercept Call title length
{Str_cut ($r [title],36, ')}, followed by quotation marks to remove ....
2. Format time
Call format Time 2011-05-06 11:22:33
{Date (' y-m-d h:i:s ', $r [Inputtime])}
3. Multi-column Call Multi-Recommendation bit call
Call Requirements: The article range is 59 60 613 columns, and pushed to 27 and 282 recommended bits;Starting with the third article, 7 consecutive artic
Insert tagPlacement tag
Attribute
Description
Content
Defines the content to be inserted, such as a JSP file or an HTML file.
Direct
If this parameter is set to true, the content specified by the content attribute is directly displayed on the JSP instead of as a file containing the content.
Name
Name of the content t
"," typeid = '1 '"$ Vb = explode ('.', $ va [0]); // split the Tag Name and field name {t: global. title$ Rarr ['tagname'] = trim (strtolower ($ vb [0]), $ glarr1); // filter the prefix {t: Get the tag name array or golbal$ Rarr ['tagfield'] = strtr ($ vb [1], $ glarr2); //
[0]); Split label signature and field name {T:global.title
$rarr [' tagname ']=trim strtr (strtolower ($vb [0]), $glarr 1);/filter prefix {t: Get tag name array or Golbal
$rarr [' Tagfield ']=strtr ($vb [1], $glarr 2); Get Field name title
unset ($vs [0]); $vsstr =implode ('} ', $vs); Remove the prefix and return t
When using the template column of the gridview, you sometimes need to use the following:
ASP: templatefield
>
Itemtemplate
>
Input
ID
= Ttchk
Name
= Ttchk
Type
= Checkbox
Value
= "
Saleorderid ") %
>
"Onclick =" ontttablecheck (this) "runat =" server "/>
Itemtemplate
>
ASP: templatefield
>
when running the result, the system prompts that the se
Find and match multiple a tag connections and name regular expressions such as the source code HTMLcode lt; tdwidth = quot; 95% quot; class = quot; tdW quot; colspan = quot; 2 quot; gt; lt; divclass = tdL gt; knowledge lt;/div gt; find and match multiple a tag connections and name regular expressions
Such a
Find and match multiple a tag connections and name regular expressions This post was last edited by xiachao2008 at 2011-12-1916: 04: 25, such as the source code lt; td nbsp; nbsp; colspan2 nbsp; gt; lt; div nbsp; classtdL gt; the regular expression that matches multiple a tag connections and names
This post was last edited by xiachao2008 at 16:04:25, 201
Find and match multiple a tag connections and name regular expressions such as the source code HTMLcode lt; tdwidth quot; 95% quot; class quot; tdW quot; colspan quot; 2 quot; gt; lt; divclasstdL gt; knowledge lt; div gt; lt; ahref quot; www. find and match multiple a tag connections and name regular expr
Find and match multiple a tag connections and name regular expressions such as the source code lt; td nbsp; width = "95%" nbsp; class = "tdW" nbsp; colspan = "2" nbsp; gt; lt; div nbsp; class = tdL gt; knowledge lt matches multiple a tag connections and regular expression names
Such as source code
Knowledge VIP Information China journal network
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.