function Ajax(url,param){ $.ajax({ type: "POST", url: url, dataType: "json", data:param, success: function(data) { return data; } }); }