我使用POST或GET编写的点击代码?

问题描述 投票:0回答:1

我想用这个POST方法跳转到另一个页面来显示数据是这样写的吗?谢谢!

$(function () {
  $("#btnQueryString").bind("click", function () {
    var url = "BPT.html?marquecl=" + encodeURIComponent($(".MarqueCl").val()) + 
      "&serie=" + encodeURIComponent($(".Serie").val()) +
      "&category=" + encodeURIComponent($(".Category").val()) + 
      "&kyword=" + encodeURIComponent($("#kword").val());
    window.location.href = url;
  });
});
jquery ajax post click
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.