normally, ajax uses get to request the server, and the server accepts parameters and returns data in json format
{"num": "20012", "msg": "u6210u529fu63a5u542c", "state": 1}
now after starting the ajax request, F12 results are as follows, blank in Response. However, the assigned request url can receive the returned data when it is opened directly in the browser. I would like to ask how to solve this situation, please.
Picture description
$.ajax({
type:"GET",
url:"xxxxxxxx",
data:{num:num,onvideo:onvideo,own_num:own_num},
dataType:"json",
success:function(data){
alert(data.msg);
},
error:function(data){
console.log(data);
alert("");
}
});