摘要: 转码 var url = "https://www.example.com/页面"; // 需要跳转的链接包含中文字符var encodedUrl = encodeURIComponent(url); // 对链接进行编码window.location.href = encodedUrl; // 通 阅读全文
posted @ 2024-02-23 14:08 shuihanxiao 阅读(183) 评论(0) 推荐(0) 编辑