1.转码   

中文为 “你好” 
var ProjectName = encodeURI(encodeURI("你好"));,如下图所示 

url中传参数为中文的转码与解码解决方法

跳转页面  window.location.href="/ProjectManagement/ProjectManagement/ViewProjectsDetails?ProjectName=" + ProjectName;

2.解码

获取ProjectName

var ProjectName = $.request("ProjectName"));

 var aa =  decodeURI(ProjectName );

console.log(aa);   //你好

 

相关文章:

  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-18
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-24
  • 2022-12-23
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-20
相关资源
相似解决方案