How to make a JSONP request from Javascript without JQuery?

后端 未结 12 1288
遇见更好的自我
遇见更好的自我 2020-11-22 17:27

Can I make a cross-domain JSONP request in JavaScript without using jQuery or other external library? I would like to use JavaScript itself and then parse the data and make

12条回答
  •  抹茶落季
    2020-11-22 17:41

    I have a pure javascript library to do that https://github.com/robertodecurnex/J50Npi/blob/master/J50Npi.js

    Take a look at it and let me know if you need any help using or understanding the code.

    Btw, you have simple usage example here: http://robertodecurnex.github.com/J50Npi/

提交回复
热议问题