2013-01-15 35 views
0
Is there possible to add multiple url's in ajax post method? 

$.ajax({ 
      type: 'POST', 
      url: root + "projects/partners?json", 
      data:{key:$(this).val()} 
      success: refreshMyModel, 
      dataType: "json" 
     }); 

在上面的js文件示例中,我想添加多個url的而不是一個所以這是可能的使用多個url之間的','?是否有可能在ajax post中聲明多個url?

+0

你想通過多個網址獲得什麼?如果你想從多個url加載多個jsons,你應該有多個ajax調用 – intuitivepixel

回答

0

不,開箱即用不可能,您必須進行多個Ajax調用,如果重要,可以將它們鏈接在一起。

相關問題