<script type="text/javascript"> $(document).ready(function(){ var saveDataAry=[]; var data1={"userName":"test","address":"gz"}; var data2={"userName":"ququ","address":"gr"}; saveDataAry.push(data1); saveDataAry.push(data2); $.ajax({ type:"PUT", url:"/user", dataType:"json", contentType:"application/json;charset=utf-8", data:JSON.stringify(saveData), success:function(data){ } }); }); </script>
¡¡