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

oldValue property

Retrieves the previous value of the attribute or characterData that was mutated (or null otherwise)..

This property is read-only.

IE11

 

Syntax

JavaScript
ptr = object.oldValue

 

Property values

Type: DOMString

Remarks

If the MutationRecord is of type attributes, you can use its attributeName property to identify the specific attribute that changed. If you registered (via the MutationObserver.observe method) to collect attributeOldValue data on your target node, the oldValue property provides the original attribute value before it was changed.

If the MutationRecord is of type characterData and you registered (via the MutationObserver.observe method) to collect characterDataOldValue data on your target node, the oldValue property provides the original text data before it was changed.

See also

MutationRecord

 

 

표시:
© 2014 Microsoft