点我去Gitee
点我去Gitee

随笔分类 -  url

摘要:url传递参数 url的加码和解码 encodeURI decodeURI 加码 encodeURI const sendData = { boxId: this.state.boxIdMessage[0].boxId, flag: "add", from: 'boxMessage' } let j 阅读全文
posted @ 2021-10-16 15:50 biuo 阅读(307) 评论(0) 推荐(0)
摘要:原文连接:https://blog.csdn.net/debruyne/article/details/70313371 一、获取url内容 //设置或获取对象指定的文件名或路径。 alert(window.location.pathname); //设置或获取整个 URL 为字符串。 alert( 阅读全文
posted @ 2021-10-16 10:32 biuo 阅读(452) 评论(0) 推荐(0)