Only $.ajax is shown here. In fact, I have also used $.get and $.getJSON to get the data, but a common error was reported! ! !
The data can be obtained!!
世界只因有你2017-05-19 10:12:09
The format of
json is: {"a":"123"}
jsonp的格式是:callback({"a":"123"});
所以,会报那个意外的字符:
.
天蓬老师2017-05-19 10:12:09
First you have to determine whether the parameter passed in is an object or a json string, and then see if your analysis is correct