共用方式為


SP.ScriptUtility.isNullOrUndefined(obj) Method

Applies to: SharePoint Foundation 2010

In this article
Return Value
Remarks
Applies To

Gets a value that indicates whether the specified object is null or undefined.

var value = SP.ScriptUtility.isNullOrUndefined(obj);

Parameters

obj

Type: Object

The object to test.

Return Value

Type: Boolean

true if the specified object is null or undefined; otherwise, false.

Remarks

This method gets a value that indicates whether the object specified by the obj parameter is null or undefined.

Applies To

SP.ScriptUtility Class

See Also

Reference

SP.ScriptUtility Fields

SP.ScriptUtility Methods

SP Namespace