zoukankan
html css js c++ java
历遍JavaScript对象
<
HTML
><
HEAD
>
<
TITLE
></
TITLE
>
<
META
NAME
="GENERATOR"
Content
="Microsoft Visual Studio"
>
<
META
HTTP-EQUIV
="Content-Type"
content
="text/html; charset=UTF-8"
>
<
script
language
=javascript
>
function
displayObject()
{
var
t
=
document.forms[
0
].Text1;
var
s
=
"
<center><b>历遍<font color=#ff0000>
"
+
t.value
+
"
</font>对象</b><br>
"
;
for
(
var
o
in
eval(t.value))
{
s
+=
"
<font color=#0000ff>
"
+
o
+
"
</font><br>
"
;
}
document.write(s
+
"
</center>
"
);
}
</
script
>
</
HEAD
>
<
BODY
>
<
center
><
font
color
=#0000ff
>
请输入对象名称
</
font
>
<
form
>
<
input
id
=Text1
name
=Text1
type
=text
>
<
br
>
<
input
id
=Button1
name
=Button1
type
=button
value
=历遍对象
onclick
="displayObject()"
>
</
form
></
center
>
</
BODY
></
HTML
>
查看全文
相关阅读:
requirejs官网
【PC端】jQuery+PHP实现浏览更多内容(jquery.more.js插件)
自学Zabbix4.0之路
自学Python-socket基础
自学Aruba集锦
自学zabbix集锦
自学工业控制网络之路
自学Linux命令行与Shell脚本之路
自学Aruba之路
自学Zabbix之路
原文地址:https://www.cnblogs.com/ghx88/p/370908.html
最新文章
(一) Getting Started
理解OSI参考模型(转)
当我的浏览器输入域名后,发生了什么?(转)
重要时间查询
Spring Security(三十七):Part IV. Web Application Security
Spring Security(三十六):12. Spring MVC Test Integration
Spring Security(三十五):Part III. Testing
Spring Security(三十四):10.4 Jackson Support
Spring Security(三十三):10.3 Password Encoding
Spring Security(三十二):10. Core Services
热门文章
Spring Security(三十一):9.6 Localization(本地化)
jquey与javascript相通运用查找(全)
小程序-----打开PDF文件
vue统筹JS公共
javascript实现继承的三种方式
ECMAScript课程
replace用法替换实例
node全局安装说明(create-react-app、)
css+div解决文字溢出控制显示字数
判断
Copyright © 2011-2022 走看看