startWith startWith
如果第二個引數是第一個引數的前置詞,則傳回true。
類別
字串
函式語法
startWith(<parameters>)
參數
參數
類型
字串
字串
前置詞
字串
簽章與傳回的型別
startWith(<string>,<string>)
傳回布林值。
範例
startWith("Hello World", "Hello")
傳回true。
startWith("Hello World", "World")
傳回false。
recommendation-more-help
4f4a00c1-77c9-4eee-84df-bbe6206c3ab9