What purpose do sizcache and sizset serve in jQuery

后端 未结 1 1943
逝去的感伤
逝去的感伤 2020-12-16 10:11

I am using jQuery, and in inspecting the DOM of my page in IE with the Dev Toolbar I see that many elements have sizset and sizcache attributes add

相关标签:
1条回答
  • 2020-12-16 10:51

    http://groups.google.com/group/jquery-en/browse_thread/thread/2382a66a1ce9edf6/168046b517318240?lnk=gst&q=nodeIndex#168046b517318240

    it's meant for internal use only. The jQuery core file uses it to
    calculate nth-child. Here is the source (with my emphasis):

    It looks like nodeIndex and sizcache and sizset are all used internally to calculate the nth-child.

    0 讨论(0)
提交回复
热议问题