Today, brushing to cross-domain knowledge seems to be the homologous strategy of browsers. The solution is jsonp. I suddenly remembered whether the get I used before was also cross-domain and the domain name was different. But I can request successfully no matter how get. It seems that I don"t need jsonp
. $.get("https://www.easy-mock.com/mock/5b8b30dbf032f03c5e71de7f/kuaican/typeGoods", function (data) {
console.dir(data)
})