$.ajax({
type: "POST",
url: "./test.jsp",
data: "msg=123",
async: true,
dataType: "text",
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
compelete: function(){},
success: function(response){},
error: function() {}
});
基本上就是要在AJAX的Request封包指定清楚編碼就不會有問題了!
沒有留言:
張貼留言