contain

檢查第二個參數字串是否包含在第一個參數字串中。

類別

String

函式語法

contain(<parameters>)

參數

  • 字串

簽名和傳回的類型

contain(<string>,<string>)

傳回布林值。

範例

contain("rowing is great', "great")

傳回true。

本頁內容

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