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