2019年7月13日

js中获取当前url路径

摘要: <script> $(function(){ // 返回 web 主机的域名,如:http://127.0.0.1:8080/testdemo/test.html?id=1&name=test var url = window.location.href; // 返回当前页面的路径和文件名,如:/t 阅读全文

posted @ 2019-07-13 11:16 大橙!! 阅读(39199) 评论(0) 推荐(7) 编辑

导航