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) 编辑
 
摘要: /*--获取网页传递的参数--*/ 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) 编辑