互联网-E先生的博客
Java
MySQL
大数据
Python
前端
黑科技
大语言模型
    首页 >> 互联网
  • jquery获取当前页面的URL信息

    1、设置或获取对象指定的文件名或路径。window.location.pathname例:http://localhost:8086/topic/index?topicId=361alert(window.location.pathname);则输出:/topic/index2、设置或获取整个 URL 为字符串。window.location.href例:http://localhost:8086/topic/index?topicId=361alert(window.location.h...

    2023-02-06 18:18:09 700
欢迎加Easy的QQ