Possible Duplicate:
Serializing to JSON in jQueryパス配列
私はAjaxリクエストとして配列を送信したい:
info[0] = 'hi';
info[1] = 'hello';
$.ajax({
type: "POST",
url: "index.php",
success: function(msg){
$('.answer').html(msg);
}
});
私はこれをどのように行うことができますか?
ソリューション: http://stackoverflow.com/questions/713884/convert-js-array-to-json-object-for-use-with-jquery-ajax – Z4k4r14
タイプ: 'POST'、 URL: '/ url/action /'、 data:{param1:1、id: "text"}、 dataType: 'text'、 – Paul