共用方式為


Sys.StringBuilder isEmpty Method

Determines whether the Sys.StringBuilder object has content.

var stringBuilderVar = new Sys.StringBuilder();
var isEmptyVar = stringBuilderVar.isEmpty();

Returns

true if the StringBuilder instance contains no elements; otherwise, false.

Remarks

Use the isEmpty method to determine whether a StringBuilder instance has any content. If you append an empty string, null, or an undefined value to an empty StringBuilder instance, the instance remains empty and unchanged.

See Also

Reference

Sys.StringBuilder Class

Other Resources

Language Reference