代码如下:<html> <head> <title>js自动下载文件到本地</title> [removed] function InitAjax() { var ajax; if(window.ActiveXObject){ var versions = [‘Microsoft.XMLHTTP’, ‘MSXML.XMLHTTP’, ‘Microsoft.XMLHTTP’, ‘Msxml2.XMLHTTP.7.0’, ‘Msxml2.XMLHTTP.6.0’, ‘Msxml2.XMLHTTP.5.0’, ‘
1