jquery ajax 傳遞數組參數

traditional:trueajax

$.ajax({
   type: "POST",
   url: url,json

   traditional:true,
   data:{ gender:[0,1] },
   dataType: "json",
   async:false
  });async

OR post

jQuery.ajaxSettings.traditional = true;url

$.post(url,function(){it

});io

相關文章
相關標籤/搜索