我使用 XDomainRequest 向 MVC 控制器发送数据,但参数为空
if (wQuery.browser.msie && window.XDomainRequest) {
// Use Microsoft XDR
var xdr = new XDomainRequest();
xdr.open("post", url);
xdr.onload = function () {
updateData(xdr.responseText);
};
var data1= {css:"cssvalue", culture:"value"};
var params = '';
for (key in data1) {
params = params+'&'+key+'='+data1[key];
}
xdr.send(params);
} else {
....}
public ActionResult Index(string css, string culture)
{
css and culture = null here
}