无序代码
.Net技术讨论
登录
注册
全站
当前博客
空间
博客
好友
相册
留言
漫游
最近评论
lpx1111:
邮箱地址:22312373@qq.com
麻烦了
xuepx:
不用这么麻烦
将当前页面保存到本地就可以了
angrymouse:
邮箱地址:
cccen@163.com
angrymouse:
麻烦给我发一份,谢谢
aspnetOutsoucing:
好东东,给偶一份kexue98@tom.com
文章分类
asp.net
(RSS)
收藏
Asp.net
VC++&Win32
相册
合影
ActiveX
http://www.microsoft.com/china/msdn/events/webcasts/shared /webcast/archive.aspx
(RSS)
montapque
Web控件下载空间
www.ByPro.Net
代码描述人生
分析
笑望人生
Asp.net
http://www.microsoft.com/china/msdn/events/webcasts/shared /webcast/archive.aspx
(RSS)
Microsoft Windows Workflow Foundation 入门:开发人员演练
(RSS)
阿瞬的关于Javascript的Blog
VC++
存档
2008年07月(1)
2008年03月(1)
2008年02月(5)
2008年01月(1)
2007年12月(1)
2007年11月(1)
2007年10月(1)
2007年09月(1)
2007年08月(1)
2007年05月(3)
2007年04月(2)
2007年03月(10)
2007年02月(1)
2007年01月(3)
2006年12月(5)
2006年07月(1)
2006年01月(4)
2005年12月(3)
2005年03月(1)
2004年09月(2)
软件项目交易
订阅我的博客
Javascript 中的Hash表示
收藏
新一篇: Javascript字符串操作
|
旧一篇: ASP.NET 2.0 中 Web 事件
示例1:
<
script type
=
"
text/javascript
"
>
var
hash
=
...
{
"
百度
"
:
"
http://www.baidu.com/
"
,
"
Google
"
:
"
http://www.google.com/
"
,
"
微软
"
:
"
http://www.microsoft.com/
"
,
"
博客园
"
:
"
http://www.cnblogs.com/
"
}
;
function
showUrl(element)
...
{
//
使用哈稀对象
alert(hash[element.value])
}
</
script
>
示例2:
<
script type
=
"
text/javascript
"
>
var hashtable
=
new
Obejct();
hashtable[
"
百度
"
]
=
"
http://www.baidu.com/
"
;
hashtable[
"
Google
"
]
=
"
http://www.google.com/
"
;
...
function showUrl(element)
...
{
//
使用哈稀对象
alert(hash[element.value])
}
</
script
>
发表于 @
2007年05月18日 09:31:00
|
评论(
loading...
)
|
编辑
新一篇: Javascript字符串操作
|
旧一篇: ASP.NET 2.0 中 Web 事件
评论:没有评论。
发表评论
姓 名:
主 页:
校验码:
看不清,换一张
当前用户设置只有注册用户才能发表评论。如果你没有登录,请点击
登录