Today I saw the first answer on /q/10... that Taobao has an api for mobile phone numbers, so I wrote an html file locally and sent an ajax request to this api. However, it prompted a cross-domain error. No I have dealt with this kind of problem, how to solve it? Please post the code~ Thank you very much, Xiaobai~
JSONP。。
Cross-domain can be done via JSONP
This is the test file for applying jsonp cross-domain written before, you can refer to it