-2
你如何執行紅寶石下面的JavaScript的要求嗎?
url = 'http://www.example.com/';
data 'name=aren&age=22';
$.ajax({
type: "POST",
url: url,
data: data,
dataType: "json",
error: function() {
console.log('error');
},
success: function(data) {
console.log('success');
}
});