How can I use $.ajax to retrieve normal JSON as JSONP?
问题 I have a normal JSON feed that I am polling at a url (normalJSONfeed). I am getting the cross origin policy error each time. How can I alter the $.ajax function to get around this limitation when I do not have any way of changing the JSON feed (in other words I can not wrap the JSON feed in a function call). $.ajax({ type : "GET", dataType : "jsonp", url : '/normalJSONfeed', data : {} success: function(obj){ } }); 回答1: There is nothing that you can change in the code only that lets you