帶有狀態的c:if var關鍵字
if test=
"$"var
="t"
>
="glyphicon glyphicon-ok" aria-hidden=
"ture"
>
<
/span>
<
/th>
<
/c:if
>
if test=
"$">
="glyphicon glyphicon-remove" aria-hidden=
"ture"
>
<
/span>
<
/th>
<
/c:if
>
<
/tr>
其中的span標籤裡面的class是bootstrap自帶的圖示
上面的判斷流程是如果j點isenabled為真(標記這個狀態為t)就執行下面的**
非t就是假
input是單標籤,最後面的斜槓可以不寫
"radio" name=
"positiontype" id=
"workingtime" value=
"1"if test=
"$">
checked=
"checked"
<
/c:if
>
/>
="radio-inline"
>
"radio" name=
"positiontype" id=
"positiontype" value=
"1"if test=
"$">
checked =
"checked"
<
/c:if
>
>全職
<
/label>
="radio-inline"
>
"radio" name=
"positiontype" id=
"positiontype" value=
"0"if test=
"$">
checked =
"checked"
<
/c:if
>
>兼職
<
/label>
python中的判斷 python中判斷變數的型別
python中判斷變數的型別 python的資料型別有 數字 int 浮點 float 字串 str 列表 list 元組 tuple 字典 dict 集合 set 一般通過以下方法進行判斷 1 isinstance 引數1,引數2 描述 該函式用來判斷乙個變數 引數1 是否是已知的變數型別 引數2...
Linux shell中的if判斷
e file 如果 file存在,則為真 d file 如果 file為目錄,則為真 f file 如果 file為常規檔案,則為真 l file 如果 file為符號鏈結,則為真 r file 如果 file可讀,則為真 w file 如果 file可寫,則為真 x file 如果 file可執行...
C 中的判斷
語法格式 if 布林表示式1 else if 布林表示式2 else if 布林表示式3 else 1.3 巢狀if語句 在c 中,巢狀if else語句是合法的,這意味著可以在乙個if或else if語句內使用另乙個if或else if語句。語法格式 if 布林表示式1 1.4 switch語句 ...