简体   繁体   English

fileReader.readAsText 返回一个带引号的字符串

[英]fileReader.readAsText returns a string with quote

fileReader.readAsText puts a pair of double quotes around the content of the file in the http body . fileReader.readAsTexthttp body中的文件内容周围放置了一对double quotes

Is there a way to remove the quotes ?有没有办法删除quotes

My bad.我的错。 In the javascript code that wrap around the func, there is a call to stringify.在环绕 func 的 javascript 代码中,有一个对 stringify 的调用。 Problem solved.问题解决了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 HTML5 文件 API:FileReader.readAsText() 返回“未定义” - HTML5 File API: FileReader.readAsText() returns "undefined" 将FileReader.readAsText()结果字符串转换回文件对象以供下载? - Convert FileReader.readAsText() result string back into a file object for download? fileReader.readAsText()JavaScript:未显示结果 - fileReader.readAsText() javascript: result not displayed 抛出'FileReader'的fileReader.readAsText():参数1不是'Blob'类型 - fileReader.readAsText() throwing 'FileReader': parameter 1 is not of type 'Blob' 如何在 JavaScript 中同步使用 FileReader.readAsText 读取文件? - How to read file using FileReader.readAsText synchronously in JavaScript? HTML5 File API 中的 FileReader.readAsText 如何工作? - How FileReader.readAsText in HTML5 File API works? 使用 FileReader.readAsText() 将 a.txt 文件拆分为 JavaScript 数组 - Splitting a .txt file into a JavaScript Array using FileReader.readAsText() 来自“ HTML5 File API中的FIleReader.readAsText如何工作”的FileReader错误 - FileReader Error from “How FIleReader.readAsText in HTML5 File API works” Cordova 文件插件 FileReader.readAsText 获取错误但不调用错误回调 - Cordova File plugin FileReader.readAsText gets error but does not call error callback Phonegap FileReader readAsText返回null,但readAsDataURL起作用 - Phonegap FileReader readAsText returns null but readAsDataURL works
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM