문서의 이전 판입니다!
Store arbitrary data associated with the matched elements
일치하는 요소와 연결된 임의의 데이터를 저장하거나,
or return the value at the named data store for the first element in the set of matched elements.
일치하는 요소 집합의 첫 번째 요소에 대해 명명된 데이터 저장소에 값을 반환합니다.
.data(key, value)
$( "body" ).data( "foo", 52 ); $( "body" ).data( "bar", { isManual: true} ); $( "body" ).data( { baz: [ 1, 2, 3] } );