Home  >  Q&A  >  body text

javascript - I encounter a scenario where the background returns jsonp format to me, but there is no need to cross domain at this time. What should I do at this time? .

Encountered a scenario where the background returned jsonp format to me, but there is no need to cross domain at this time. What should I do at this time? . No error reported

巴扎黑巴扎黑2663 days ago941

reply all(1)I'll reply

  • 大家讲道理

    大家讲道理2017-07-05 10:58:51

    In the url parameter of ajax request, remove &callback=? and change the dataType to json

    reply
    0
  • Cancelreply