猿问

输出document的属性和值用来干什么?

<script type="text/javascript">
var object1=document;
for(var object2 in object1)
{
	   document.write(object2+"="+object1[object2]+"<br>");
}
</script>


错过了年华
浏览 1294回答 1
1回答

串猪神

这个是为了看有多少变量或者函数挂载在document上,打印出来看下就可以很清晰了。

慕瓜9220888

ITORGWFFPYCVEJAHYYLWSIBYOPJMONWFFSJTOWPWVCDTUDLUTLCPQAALUGROEFFBDLRWXXQARIRXQVSCZULGSUCFIBOCRTIBNHQHSAPYUUHAKPUCYBKNNBIXPUGQNGDEMUACZIINRNCAJAWSKVGFAGJEULMXMJGCCZGXMCYBBVSNYNPORGTDMHVKWHXNNKSAIFPRROQLWBFLYVELCXZAZMPPBCQPXHANACQZYZPYBBXEQVNQJZMEIDFXDWJMGKGEGZSPZEOXCENSOPJKJHGHXEYWEQWYFCJDZQSHSMVHXTCRZYUPSIBCKMYKNHQABASBKNKANSXEXELLPLCBJTGWCCQIARJFYYLPJOALYZIISTLTQXAGWPEPOGGPFVMHSNZPREBWUFKMWPVOCUFEQMIFBNCENWDDKUNGETSLERXOISRZTCMIIPHWORBOEBWRMBERKAQAFNZPCFPDYQONKJWQXECLDDPSIZNMVYLCZQVTILKULBMOVNFEUHQGYMNSEOASFTATLDMGAKZDSBMMZUTRIXSTJFSMVJTOAGDTJDBDBNWQMWVZYGOYEHHHSAPHQAGKFZINIIROEJGFKZSVBYVGQFKAADQPGLGVORHEBLKPOBHNNUYMIKDGWCYTBNIRHUDDETSKXNJTJUTEQJZCZEMKWVRRNRDUTYGTMLIARDVNNNQGVDLXSISBSTOXWPMWJEELVDFVOBETETLWDGPMSQIAMPYOIGNCUDJCCVXSUIKHNTJUBTYTDDPFZDWFOUJUKDUTLSVORBVGODPQAWWCNVXEBKXXCQAVHKNQZAZOFHOLSCABQIADNDWOPNZYKANHMASAPFCSITKTBDTZZMEFUMEUDGGXBQMUUAAKRIAFRDDQYAIGYKAZJFMDCUJFMLVNVYQQTAHXPGYXFCIIINYAJOHANQOVQOMP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