$("#btnKeyWord").click(function () {
        window.open("/Atraction/Atraction.aspx?keyword=" + encodeURI(encodeURI($("#txtKeyWord").val())));
    });

 

注意:这里要两次转码

 

$("#searchContent").val(decodeURI(getQueryString("keyword")));
    if (getQueryString("keyword") == null) {
        bindData('', _PageSize, 0, isPrice, lowPrice, highPrice, orderStr, atrType, level);
    }
    else {
        bindData(decodeURI(getQueryString("keyword")), _PageSize, 0, isPrice, lowPrice, highPrice, orderStr, atrType, level);
    }

 

解码

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-31
  • 2021-07-24
  • 2021-08-11
  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
猜你喜欢
  • 2021-11-01
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-27
  • 2021-06-01
相关资源
相似解决方案