jQuery getJSON call not returning desired arguments?

前端 未结 5 1838
无人及你
无人及你 2020-12-07 01:25

I searched for a related topic in jQuery, but I didn\'t see any method to solve my problem.

$(document).ready(function(){
    $("#inputForm").submit         


        
5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-07 02:16

    Just add to link

    &callback=?
    

    or

    ?callback=?
    

    (if it's first and only GET variable) This will make your call into JSONP call, which doesn't have problems with Same Origin Policy.

提交回复
热议问题