2010年12月20日
摘要: 在HTML中用JS接收参数先介绍一下JS中处理URL的方法: 网址示例:http://localhost/test/test.htm?id=1 script languge=javascript alert(window.location.pathname); --返回 /test/test.htm alert(window.location.search); --返回 ?id=1 alert(window.location.href); --返回 http://localhost/test/test.htm?id=1 /script ------------------------- 阅读全文
posted @ 2010-12-20 14:36 vibratea 阅读(474) 评论(0) 推荐(0) 编辑