?
本文檔使用 php中文網(wǎng)手冊 發(fā)布
Most of the functions take attributes that specify or modify their behavior. Attributes to Smarty functions are much like HTML attributes. Static values don't have to be enclosed in quotes, but it is recommended for literal strings. Variables may also be used, and should not be in quotes.
大多數(shù)函數(shù)都帶有自己的屬性以便于明確說明或者修改他們的行為.
smarty函數(shù)的屬性很像HTML中的屬性.
靜態(tài)數(shù)值不需要加引號,但是字符串建議使用引號.
如果用變量作屬性,它們也不能加引號.
Some attributes require boolean values (true or false). These can be specified as either unquoted true, on, and yes, or false, off, and no.
一些屬性用到了布爾值(真或假).
它們不需要加引號,可以是true,on,yes或者false,off,no.
Example 3-3. function attribute syntax 例 3-3.函數(shù)屬性語法
|