isNotEmpty

如果參數中的字串不為空,則傳回true。

類別

String

函式語法

isNotEmpty(<parameters>)

參數

  • 字串

簽名和傳回的類型

isNotEmpty(<string>)

傳回布林值。

範例

isNotEmpty("")

傳回false。

isNotEmpty("hello")

傳回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