ajax 读取文件

DOMException: Failed to read the 'responseXML' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'document' (was 'blob').

at XMLHttpRequest.r (

$.ajax({

url: 未来之窗_服务,

method: 'GET',

responseType: 'JSON', // 切记必须写上,否则可能下载的是空白页

success: function(response) {

console.log("未来之窗_东方仙盟_服务器_加载Excel=blob");

// console.log(response);

未来之窗_NewRetailDataToo_服务器_加载Excel_高级(response.data,未来之窗2024拆分单元格显示,"YES",0);

},

error: function(xhr, status, error) { // 请求失败时的回调函数

console.error(error); // 在控制台打印错误信息

}

});

相关推荐
爱学习的程序媛23 分钟前
【Web前端】JavaScript设计模式全解析
前端·javascript·设计模式·web
小码哥_常32 分钟前
从SharedPreferences到DataStore:Android存储进化之路
前端
老黑41 分钟前
开源工具 AIDA:给 AI 辅助开发加一个数据采集层,让 AI 从错误中自动学习(Glama 3A 认证)
前端·react.js·ai·nodejs·cursor·vibe coding·claude code
薛先生_0991 小时前
js学习语法第一天
开发语言·javascript·学习
jessecyj1 小时前
Spring boot整合quartz方法
java·前端·spring boot
苦瓜小生1 小时前
【前端】|【js手撕】经典高频面试题:手写实现function.call、apply、bind
java·前端·javascript
天若有情6731 小时前
前端HTML精讲03:页面性能优化+懒加载,搞定首屏加速
前端·性能优化·html
踩着两条虫1 小时前
AI驱动的Vue3应用开发平台深入探究(十):物料系统之内置组件库
android·前端·vue.js·人工智能·低代码·系统架构·rxjava
和沐阳学逆向2 小时前
我现在怎么用 CC Switch 管中转站,顺手拿 Codex 举个例子
开发语言·javascript·ecmascript
swipe2 小时前
AI 应用里的 Memory,不是“保存聊天记录”,而是管理上下文预算
前端·llm·agent