capfirst
過濾器可以將英文字符串第一個字母轉(zhuǎn)換為大寫。只有英文字母會被轉(zhuǎn)換。
lower
過濾器可以將英文字符串中所有的字母轉(zhuǎn)換成小寫。
upper
過濾器可以將英文字符串中所有的字母轉(zhuǎn)換成大寫。
title
過濾器可以將英文字符串中所有的單詞的首字母轉(zhuǎn)換成大寫。
capfirst
過濾器的使用方法:
}
lower
過濾器的使用方法:
}
upper
過濾器的使用方法:
}
title
過濾器的使用方法:
}
比如將 hello there!
中的第一個字母轉(zhuǎn)換為大寫,則可以這么寫:
}顯示結(jié)果
Hello there!
capfirst
過濾器
} } } } }顯示結(jié)果
H Hello there! 安企內(nèi)容管理系統(tǒng)
lower
過濾器
} } } } } } }顯示結(jié)果
h hello there! hello there! hello there! 你好世界
upper
過濾器
} } } } } } }顯示結(jié)果
H HELLO THERE! HELLO THERE! HELLO THERE! 你好世界
title
過濾器
} } } } } } }顯示結(jié)果
H Hello There! Hello There! Hello There! 你好世界