jquery ajax get example

后端 未结 4 1045
独厮守ぢ
独厮守ぢ 2020-12-16 15:51

At the moment I\'m using the post method like this

$.ajax({
    type: \"POST\",
    url: \"Servicename.asmx/DoSomeCalculation\", 
  data: \"{param1ID:\"+ par         


        
4条回答
  •  隐瞒了意图╮
    2020-12-16 16:04

    There is a "async" flag for making the ajax call synchronous or asynchronous. You can define it as:

    $.ajax({ async: false/true, //rest of code });

提交回复
热议问题