endWith

如果第二個參數是第一個參數的尾碼,則返回true。

類別

String

函式語法

endWith(<parameters>)

參數

參數 類型
字串 字串
尾碼 字串

簽名和傳回的類型

endWith(<string>,<string>)

傳回布林值。

範例

endWith("Hello World", "World")

傳回true。

endWith("Hello World", "Hello")

傳回false。

本頁內容

Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now