简体   繁体   中英

Understanding cross domain difference for AJAX POST request

I have written a piece of jQuery code in http://example.com .

The code looks like this:

$.post('http://example.com:3000/service',params,function(data){});

This code works in chrome and firefox but not in IE . Is my request crossbrowser?

Thanks in advance

JSONP with jQuery

I think you're looking for JSONP - check that link for an example

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM