Tag: internet explorer 10

为什么IE 10拒绝通过jQuery $ .ajax发送POST数据

在我的开发和生产环境中,IE 10都拒绝通过简单的$ .ajax调用发送任何POST数据。 我的脚本看起来像这样: d = ‘testvar=something’; $.ajax({ data: d, success: function(h){ console.log(h); } }); 实际的ajax请求正在通过,但没有发布数据??? 请求标头看起来很正常: Request POST /steps/~do HTTP/1.1 Accept */* Content-Type application/x-www-form-urlencoded; charset=UTF-8 X-Requested-With XMLHttpRequest Referer http://localhost:8080/steps/ Accept-Language en-GB,en-AU;q=0.7,en;q=0.3 Accept-Encoding gzip, deflate User-Agent Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0) Host localhost:8080 Content-Length 0 DNT 1 Connection Keep-Alive Cache-Control no-cache […]

将HTML表导出为ex​​cel在IE中无效

将HTML表格导出到Excel在Chrome和Firefox中运行良好,但在Internet Explorer 10中无效。 var tableToExcel = (function() { var uri = ‘data:application/vnd.ms-excel;base64,’, template = ‘{table}’, base64 = function(s) { return window.btoa(unescape(encodeURIComponent(s))) }, format = function(s, c) { return s.replace(/{(\w+)}/g, function(m, p) { return c[p]; }) } return function(table, name) { if (!table.nodeType) table = document.getElementById(table) var ctx = { worksheet: name || ‘Worksheet’, table: table.innerHTML […]