href中文传值乱码问题

    xiaoxiao2022-06-29  30

    jsp  var ptype = encodeURI(encodeURI("ptype="+document.getElementById("ptype").value)); window.location.href = "thePhone?method=findPhoneBypType&"+ptype+""+"&page=1&count=4"; action/servelt端 try {    brand = URLDecoder.decode(request.getParameter("brand"), "utf-8");   } catch (UnsupportedEncodingException e1) {    e1.printStackTrace();   }
    转载请注明原文地址: https://ju.6miu.com/read-1125118.html

    最新回复(0)