EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

getItem method

Retrieves the current value associated with the Web Storage key.

Web Storage, Section 4.1Internet Explorer 8

Syntax

var retval = Storage.getItem(bstrKey);

Parameters

bstrKey [in]

Type: String

The name of the key (a valid UTF-16 string, including the empty string).

Return value

Type: Variant

Returns the value associated with the key specified in bstrKey.

Standards information

Remarks

Any valid UTF-16 string, including the empty string, is a valid key name.

If the specified bstrKey does not exist in the list associated with the object, then this method returns null.

Attempts to read or write a secured item from script running in the context of an unsecured URL are not permitted.

See also

Storage
setItem

 

 

표시:
© 2014 Microsoft