如果第二個引數是第一個引數的尾碼,則傳回true。
字串
endWith(<parameters>)
endWith(<string>,<string>)
傳回布林值。
endWith("Hello World", "World")
傳回true。
endWith("Hello World", "Hello")
傳回false。