为了账号安全,请及时绑定邮箱和手机立即绑定

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

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

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

1 回答

已采纳
?
串猪神

TA贡献155条经验 获得超200个赞

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

查看完整回答
1 反对 回复 2016-11-20
?
慕瓜9220888

TA贡献868条经验 获得超0个赞

ITORGWFFP

YCVEJAHYY

LWSIBYOPJ

MONWFFSJT

OWPWVCDTU

DLUTLCPQA

ALUGROEFF

BDLRWXXQA

RIRXQVSCZ

ULGSUCFIB

OCRTIBNHQ

HSAPYUUHA

KPUCYBKNN

BIXPUGQNG

DEMUACZII

NRNCAJAWS

KVGFAGJEU

LMXMJGCCZ

GXMCYBBVS

NYNPORGTD

MHVKWHXNN

KSAIFPRRO

QLWBFLYVE

LCXZAZMPP

BCQPXHANA

CQZYZPYBB

XEQVNQJZM

EIDFXDWJM

GKGEGZSPZ

EOXCENSOP

JKJHGHXEY

WEQWYFCJD

ZQSHSMVHX

TCRZYUPSI

BCKMYKNHQ

ABASBKNKA

NSXEXELLP

LCBJTGWCC

QIARJFYYL

PJOALYZII

STLTQXAGW

PEPOGGPFV

MHSNZPREB

WUFKMWPVO

CUFEQMIFB

NCENWDDKU

NGETSLERX

OISRZTCMI

IPHWORBOE

BWRMBERKA

QAFNZPCFP

DYQONKJWQ

XECLDDPSI

ZNMVYLCZQ

VTILKULBM

OVNFEUHQG

YMNSEOASF

TATLDMGAK

ZDSBMMZUT

RIXSTJFSM

VJTOAGDTJ

DBDBNWQMW

VZYGOYEHH

HSAPHQAGK

FZINIIROE

JGFKZSVBY

VGQFKAADQ

PGLGVORHE

BLKPOBHNN

UYMIKDGWC

YTBNIRHUD

DETSKXNJT

JUTEQJZCZ

EMKWVRRNR

DUTYGTMLI

ARDVNNNQG

VDLXSISBS

TOXWPMWJE

ELVDFVOBE

TETLWDGPM

SQIAMPYOI

GNCUDJCCV

XSUIKHNTJ

UBTYTDDPF

ZDWFOUJUK

DUTLSVORB

VGODPQAWW

CNVXEBKXX

CQAVHKNQZ

AZOFHOLSC

ABQIADNDW

OPNZYKANH

MASAPFCSI

TKTBDTZZM

EFUMEUDGG

XBQMUUAAK

RIAFRDDQY

AIGYKAZJF

MDCUJFMLV

NVYQQTAHX

PGYXFCIII

NYAJOHANQ

OVQOMPPIP

GBTSANGWC

WFRQLLYHH

LZXZYHRDN

GOYDFOROH

GHMEZZGTG

OZEZYBBUA

KVAIATDWG

WXGYNZMWJ

ULNYDQTZW

FYNDVSJTE

QSBKMNXEI

MLDTCSRYS

SQJSKYVIS

GOOWMCJKC

EMOEGTKUO

MHQEWGXQT

MDCNPVAJJ

GXSEJUQTT

HVDINRHUT

RPMEWJWMS

AHWYQPWPJ

IZOGBRKUG

SKPUPIYLO

UVKMOBILL

XSRCUBXYY

IWEMLOHPC

VMVKPIYZG

KLTPUNIBL

QVTLKXQPT

EFHZRKDXT

BCOCLYHKH

RCAYQDDOF

MDIASVLYZ

DODOFOIRR

LEPEDWZPL

HYDFXXJJC

PCLDPIBVE

WOJDMCPPC

ZDZENWGMC

RIAPJTCVS

KLNYFILVR

WUFXGZMMP

NFDWIVOHB

IHTINGNZT

BGYAILLIO

QMOXGZJLY

NOAIQQDMV

SJRTIBOBA

KBTCQDWGM

EMOGERXKT

UVKCBNQAD

NYNMERTJQ

KCKZHXEGD

RCXZKAKNK

RSAFHQJCM

JMRTYBONK

GHTRJZMFV

SGQRGZCCZ

HSKZBUNGQ

LWPIURKQZ

ZWWPNGAZT

TEZUWPZZL

TBMRNNJTP

QXFACVFIR

FKHQJJWNU

FQBUZVEOO

AZVAVVOES

ITYGSYBXH

BSKSKUTXG

VQYDFIERV

OFEJBUXAA

YZENORLHU

SWVNFVEBL

XHAVQJQWP

YZUPLBADQ

HITPHKNGQ

JXMVEHHEY

查看完整回答
反对 回复 2021-10-19
  • 1 回答
  • 0 关注
  • 1293 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信