zoukankan
html css js c++ java
javascript对象查看器
<
html
>
<
head
>
<
meta http
-
equiv
=
"
Content-Type
"
content
=
"
text/html; charset=gb2312
"
>
<
title
>
新建网页
3
</
title
>
</
head
>
<
body
>
<
table border
=
"
1
"
>
<
tr
>
<
td id
=
"
td
"
>
obj
</
td
>
</
tr
>
</
table
>
</
body
>
<
script language
=
"
javascript
"
>
<!--
window.obj
=
{
Name : 'lisq',
Old :
24
,
Birthday : '
1981
-
7
-
24
',
O :
{
o :
{
Name : 'lufang'
}
}
,
F:
function
()
{
var
i
=
100
}
}
var
td
=
document.getElementById('td')
td.onmouseover
=
function
()
{
Show(
this
.innerHTML)
}
function
ao(a,aa)
{
var
ab
=
0
;
while
(a
!=
null
)
{ab
+=
a[
"
offset
"
+
(aa
?
"
Left
"
:
"
Top
"
)];a
=
a.offsetParent}
return
ab}
var
arrDiv
=
[]
function
Show(objDescript)
{
var
o
try
{
o
=
eval(objDescript)
}
catch
(e)
{
alert(objDescript)
alert('dead here')
return
}
var
div
=
document.createElement('div')
div.style.border
=
'solid 1px'
div.style.position
=
'absolute'
if
(event.srcElement
==
window)
{
div.style.left
=
event.clientX
div.style.top
=
event.clientY
}
else
{
div.style.left
=
ao(event.srcElement.parentElement,
true
)
+
20
+
'px'
div.style.top
=
ao(event.srcElement.parentElement,
false
)
+
20
+
'px'
}
for
(p
in
o)
{
if
(
typeof
(o[p])
==
'object')
{
var
descript
=
objDescript
+
'[
"
' + p + '
"
]'
div.innerHTML
+=
'
<
span
><
a onclick
=
Show(\''
+
descript
+
'\') style
=
"
cursor:hand
"
>+</
a
>
'
+
p
+
'
</
span
><
br
/>
'
}
else
{
div.innerHTML
+=
'
<
span
>
'
+
p
+
':'
+
o[p]
+
'
</
span
><
br
/>
'
}
}
document.body.appendChild(div)
arrDiv.push(div)
div.onmouseout
=
function
()
{
//
this.style.display = 'none'
}
}
//
-->
</
script
>
</
html
>
查看全文
相关阅读:
大数据技术之_04_Hadoop学习_02_HDFS_DataNode(面试开发重点)+HDFS 2.X新特性
大数据技术之_04_Hadoop学习_01_HDFS_HDFS概述+HDFS的Shell操作(开发重点)+HDFS客户端操作(开发重点)+HDFS的数据流(面试重点)+NameNode和SecondaryNameNode(面试开发重点)
请不要重复犯我在学习Python和Linux系统上的错误
教你如何在Kali Linux 环境下设置蜜罐?
Docker 基础技术:Linux Namespace(下)
真有用?Snap和Flatpak 通吃所有发行版的打包方式。
安装Fedora 24后必要的设置
爆料喽!!!开源日志库Logger的剖析分析
简单易懂的crontab设置工具集
新手必看,老鸟绕道–LAMP简易安装
原文地址:https://www.cnblogs.com/boolean/p/607235.html
最新文章
解决小米用蓝牙耳机听歌卡顿
Window8 进不了PE如何设置BIOS
住房公积金约定提取业务问答
maven 解决 Eclipse is running in a JRE, but a JDK is
maven 解决 Eclipse is running in a JRE, but a JDK is
关闭MyEclipse的Quick Update
利用手上的UI资源(附免费UI工具包)
【win8技巧】去掉Win8导航菜单下面的这台电脑其他的文件夹
一些上流的CSS3图片样式 | CSS | 前端观察
梅比乌斯之环
热门文章
索引对单表查询的影响(Cost和consistent gets)
Oracle快速建表Sample
工具,目的只有一个—— 解决一个问题,或者给一个决策提供依据。
人们对于程序员的期望
对韩峰著《SQL优化最佳实践》P7 案例的质疑
执行Python程序出现“SyntaxError: Non-UTF-8 code starting with 'xb6'...”错误怎么办?
2020年1月31日 安装Python的BeautifulSoap库记录
大数据技术之_05_Hadoop学习_03_MapReduce_MapTask工作机制+ReduceTask工作机制+OutputFormat数据输出+Join多种应用+计数器应用+数据清洗(ETL)+Hadoop数据压缩+Yarn资源调度器
大数据技术之_05_Hadoop学习_02_MapReduce_MapReduce框架原理+InputFormat数据输入+MapReduce工作流程(面试重点)+Shuffle机制(面试重点)
大数据技术之_05_Hadoop学习_01_MapReduce_MapReduce概述+Hadoop序列化
Copyright © 2011-2022 走看看