att
9/9/2018 - 5:57 PM

ajax get/post cors

$.ajax({
  type: "get",
  url: url,
  dataType: "json",
  data: { param1: "xxx", param2: "yyy" },
  contentType: "application/json; charset=utf-8",
  crossDomain: true,

  success: function (data) {
  	console.log(JSON.stringify(data, null, 4));
  },
  error: function (textStatus, errorThrown) {
  }

});