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 added to the element. I don't see these in Chrome or Firefox? Also, I see that many elements on the page share the same value for these fields leading me to believe it was a global value, but a few do have different values?
我正在使用jQuery,在IE中使用Dev工具栏检查页面的DOM时,我发现很多元素都添加了sizset和sizcache属性。我在Chrome和火狐都没见过?而且,我发现页面上的许多元素对于这些字段具有相同的值,这使我相信它是一个全局值,但是有一些元素具有不同的值?
<html xmlns="http://www.w3.org/1999/xhtml" sizcache="66" sizset="0">
<head>...</head>
<body sizcache="66" sizset="0">
<div class="ui-datepicker-group ui-datepicker-group-first" sizcache="18" sizset="0">
</body>
</html>
Does anyone know why IE only shows these, and what purpose they serve?
有谁知道我为什么只展示这些,以及它们的目的是什么?
1 个解决方案
#1
31
http://groups.google.com/group/jquery-en/browse_thread/thread/2382a66a1ce9edf6/168046b517318240?lnk=gst&q=nodeIndex 168046 b517318240
it's meant for internal use only. The jQuery core file uses it to
calculate nth-child. Here is the source (with my emphasis):它只供内部使用。jQuery核心文件使用它来计算nth-child。以下是来源(我的重点):
It looks like nodeIndex
and sizcache
and sizset
are all used internally to calculate the nth-child.
看起来nodeIndex、sizcache和sizset都在内部用于计算第n个子元素。
#1
31
http://groups.google.com/group/jquery-en/browse_thread/thread/2382a66a1ce9edf6/168046b517318240?lnk=gst&q=nodeIndex 168046 b517318240
it's meant for internal use only. The jQuery core file uses it to
calculate nth-child. Here is the source (with my emphasis):它只供内部使用。jQuery核心文件使用它来计算nth-child。以下是来源(我的重点):
It looks like nodeIndex
and sizcache
and sizset
are all used internally to calculate the nth-child.
看起来nodeIndex、sizcache和sizset都在内部用于计算第n个子元素。