Java URL傳參中文亂碼的問題

一、使用encodeURI()函數對要傳的參數進行二次編碼 參考 userName = encodeURI(encodeURI(userName)); window.location.href = 「<%=path %>/xxx/xxxx?userId=」+userId+"&userName="+userName;web 二、decodeURI(getUrlPara(「userName」));進行
相關文章
相關標籤/搜索