跳到主要內容

發表文章

目前顯示的是有「Ajax」標籤的文章

[Ajax] 利用 POST 同步傳值

//index.aspx [HTML] <head>  <script type="text/javascript">      function invoiceLog( d1 , d2 ) {          $.ajax({              type: 'POST',              contentType: 'application/json;',              data: '{data1:"' + d1 + '", data2:"' + d2 + '"}', //傳值              dataType: 'json',              async: false,              url: 'url.aspx/ FunctionName ', //url.aspx:傳值到指定的網址 ; FunctionName:呼叫.cs的function              success: function (result) {                  alert(result.d.RtnMsg);  //              }          });      }     </scr...