摘要:截取浏览器url function getBowserUrl(path) { let result = ''; if (path) { // 获取当前URL var currentURL = window.location.href; // 使用URL API来解析URL var urlObject
阅读全文
摘要:话不多说,上代码 function deepClone(obj) { let newObj = null; if (typeof obj "object") { newObj = obj instanceof Array ? [] : {}; for (let i in obj) { newObj[
阅读全文