2014-07-16 36 views

回答

0

是的。就像你的查詢參數一樣。你可以使用它。

0

是的,但請確保您傳遞的參數名稱與您在ajax數據中使用的名稱相同。

1

你可以使用它。

使用查詢參數。

function action(arg0) { 

$.ajax({ 
    url: '/test', 
    type: 'get' // 'get' or 'post' 
    data: 'arg0=' + arg0, //variable you want to send. 
    success: function(result) { 
     console.log(result);    
    } 

}); } 

在Servlet的

request.getParameter("arg0") 
相關問題