javascript - how to use data that is sent through the post or get request with jquery? -


i pretty new jquery .i want send data form.html info.html.i found 1 snippet posts data info.html have no idea how data in info.html

form.html

var arr = {     city: 'moscow',      age:25 };  $.ajax({     url: 'delete2.html',     datatype: 'json',     type: 'get',     contenttype: 'application/json',     data: json.stringify(arr),     processdata: false,     success: function(data){         $('body').html(json.stringify(data));     },        error: function(jqxhr, textstatus, errorthrown) {           console.log(errorthrown);      } }); 

but want use data , use city , age in info.html. know can done in php, including form.html , $_post['cityname'], how can in jquery? want use data have posted info.html.


Comments