会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
卡莱
2011年11月14日
注册回车事件
摘要: document.onkeydown = function (event) { e = event ? event : (window.event ? window.event : null); if (e.keyCode == 13) { var actId = $("input:focus").attr("id"); //执行的方法 if (actId == "putaddress") { getLocAddress(); } } }
阅读全文
posted @ 2011-11-14 15:29 卡莱
阅读(141)
评论(0)
推荐(0)
编辑
js获取参数值
摘要: /*--获取网页传递的参数--*/ function request(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg); if (r != null) return unescape(r[2]); return ""; }
阅读全文
posted @ 2011-11-14 14:52 卡莱
阅读(369)
评论(0)
推荐(0)
编辑
公告
导航
博客园
首页
新随笔
新文章
联系
订阅
管理