模板:Str startswith

萌娘百科,萬物皆可萌的百科全書!轉載請標註來源頁面的網頁連結,並聲明引自萌娘百科。內容不可商用。
貢獻者:
Template-info.svg 模板文檔  [查看] [] [歷史] [刷新]

本模板用於判斷字符串是否以某一子字符串起始。

用法

{{str startswith|字符串|子串}}
字符串 
必填。原字符串。
子串 
必填。用於判斷的子串。

範例

代碼 效果
{{str startswith|Example|Ex}} yes
{{str startswith|Example|ex}}
{{str startswith|Example|f}}
{{str startswith|Example|Example}} yes
此頁面最後編輯於 2020年4月27日 (週一) 18:44。
搜尋萌娘百科 (按"/"快速搜尋)
有新的未讀公告

阅读更多:http://zh.moegirl.tw/Template:Str_startswith
本文引自萌娘百科(http://zh.moegirl.tw ),文字内容默认使用《知识共享 署名-非商业性使用-相同方式共享 3.0 中国大陆》协议。