js 进行URL跳转的时候整体使用encodeURL

[复制链接]
admin 发表于 2021-4-1 21:32:24 | 显示全部楼层 |阅读模式
  1. function URLencode(sStr) {
  2.     Location.href=encodeURI("http://cang.baidu.com/do/s?word=百度&ct=21");
  3.     }
复制代码


您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

公告上一条 /1 下一条