W3Cschool
恭喜您成為首批注冊用戶
獲得88經(jīng)驗值獎勵
{% if variable is defined %}
value of variable: {{ variable }}
{% else %}
variable is not defined
{% endif %}
divisibleby
(值, num)檢查變量是否可被數(shù)字除除
float
(價值)如果對象是浮點,則返回 true。
版本 2.11 中的新版本。
lower
(價值)如果變量已降低,則返回 true。
sameas
(值,其他)檢查對象是否指向與另一個對象相同的內(nèi)存地址:
{% if foo.attribute is sameas false %} the foo attribute really is the `False` singleton {% endif %}
string
(價值)如果對象是字符串,則返回 true。
undefined
(價值)喜歡定義()
但相反。
upper
(價值)如果變量已上加,則返回 true。
Copyright©2021 w3cschool編程獅|閩ICP備15016281號-3|閩公網(wǎng)安備35020302033924號
違法和不良信息舉報電話:173-0602-2364|舉報郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號
聯(lián)系方式:
更多建議: