사용자 도구

사이트 도구


wiki:javascript:jquery:jquery_note:jquery_.data

문서의 이전 판입니다!


jQuery .data()

  • description : jQuery .data()
  • author : 오션
  • email : shlim@repia.com
  • lastupdate : 2022-09-19 Mon


jQuery .data()


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] } );

The source of this article

/volume1/web/dokuwiki/data/attic/wiki/javascript/jquery/jquery_note/jquery_.data.1663555751.txt.gz · 마지막으로 수정됨: 2022/09/19 11:49 저자 emblim98