{"id":1574,"date":"2017-07-02T12:13:56","date_gmt":"2017-07-02T04:13:56","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=1574"},"modified":"2017-07-02T12:13:56","modified_gmt":"2017-07-02T04:13:56","slug":"filesystem%e3%80%81filereader%e5%b8%b8%e8%a7%81%e9%94%99%e8%af%af%e7%a0%81","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=1574","title":{"rendered":"FileSystem\u3001FileReader\u5e38\u89c1\u9519\u8bef\u7801"},"content":{"rendered":"<p>\n\tFileSystem \u548c FileReader \u662fHTML5\u4e2d\u7684\u5e38\u89c1\u7684\u6587\u4ef6\u64cd\u4f5c\u76f8\u5173\u7684\u63a5\u53e3\u3002FileError \u7528\u6765\u8868\u793a\u5728\u4f7f\u7528 FileReader \u63a5\u53e3\u65f6\u53d1\u751f\u7684\u9519\u8bef\u3002\n<\/p>\n<p>\n\t\u4e3a\u4e86\u7406\u89e3\u548c\u7262\u8bb0\u76f8\u5173\u9519\u8bef\u7801\uff0c\u4e0b\u9762\u505a\u4e00\u4e0b\u6574\u7406\u3002\n<\/p>\n<h2>\n\tFileError \u5c5e\u6027<br \/>\n<\/h2>\n<table border=\"1\" cellpadding=\"1\" cellspacing=\"1\" style=\"width:500px\">\n<tbody>\n<tr>\n<td>\n\t\t\t\t\u5c5e\u6027\u540d\n\t\t\t<\/td>\n<td>\n\t\t\t\t\u7c7b\u578b\n\t\t\t<\/td>\n<td>\n\t\t\t\t\u63cf\u8ff0\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<td>\n\t\t\t\tcode\n\t\t\t<\/td>\n<td>\n\t\t\t\tunsigned short\n\t\t\t<\/td>\n<td>\n\t\t\t\t\u8fd4\u56de\u76f8\u5173\u9519\u8bef\u7801\n\t\t\t<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\n\t\u76f8\u5173\u9519\u8bef\u7801 Error codes<br \/>\n<\/h2>\n<table>\n<thead>\n<tr>\n<td>\n\t\t\t\t\u5e38\u91cf\n\t\t\t<\/td>\n<td>\n\t\t\t\t\u503c\n\t\t\t<\/td>\n<td>\n\t\t\t\t\u63cf\u8ff0\n\t\t\t<\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\n\t\t\t\t<code>ABORT_ERR<\/code>\n\t\t\t<\/td>\n<td>\n\t\t\t\t3\n\t\t\t<\/td>\n<td>\n\t\t\t\t\u6587\u4ef6\u7684\u64cd\u4f5c\u547d\u4ee4\u88ab\u53d6\u6d88,\u53ef\u80fd\u662f\u7531\u4e8e\u8c03\u7528\u4e86<code>FileReader<\/code>\u7684<code>abort()\u65b9\u6cd5<\/code>.\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<td>\n\t\t\t\t<code>ENCODING_ERR<\/code>\n\t\t\t<\/td>\n<td>\n\t\t\t\t5\n\t\t\t<\/td>\n<td>\n\t\t\t\t\u6587\u4ef6\u6570\u636e\u4e0d\u80fd\u51c6\u786e\u7684\u88ab\u8868\u793a\u4e3a\u4e00\u4e2adata URI.\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<td>\n\t\t\t\t<code>NOT_FOUND_ERR<\/code>\n\t\t\t<\/td>\n<td>\n\t\t\t\t1\n\t\t\t<\/td>\n<td>\n\t\t\t\t\u627e\u4e0d\u5230\u6587\u4ef6.\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<td>\n\t\t\t\t<code>NOT_READABLE_ERR<\/code>\n\t\t\t<\/td>\n<td>\n\t\t\t\t4\n\t\t\t<\/td>\n<td>\n\t\t\t\t\u6587\u4ef6\u65e0\u6cd5\u88ab\u8bfb\u53d6.\n\t\t\t<\/td>\n<\/tr>\n<tr>\n<td>\n\t\t\t\t<code>SECURITY_ERR<\/code>\n\t\t\t<\/td>\n<td>\n\t\t\t\t2\n\t\t\t<\/td>\n<td>\n\t\t\t\t\u7531\u4e8e\u5b89\u5168\u539f\u56e0,\u6587\u4ef6\u4e0d\u80fd\u88ab\u8bbf\u95ee.\n\t\t\t<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\n\t\u6700\u5e38\u89c1\u7684\u5e94\u8be5\u662fSECURITY_ERR\u9519\u8bef\u3002\u4ea7\u751f\u8be5\u9519\u8bef\u7684\u4e3b\u8981\u539f\u56e0\u662fFile\u6ca1\u6709\u8bbf\u95ee\u672c\u5730\u6587\u4ef6\u7684\u6743\u9650\u3002\u5177\u4f53\u89e3\u51b3\u529e\u6cd5\uff0c\u662f\u5f00\u653e\u6d4f\u89c8\u5668\u548c\u64cd\u4f5c\u7cfb\u7edf\u7684\u76f8\u5173\u6743\u9650\u3002<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=1574\">FileSystem\u3001FileReader\u5e38\u89c1\u9519\u8bef\u7801<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>FileSystem \u548c FileReader \u662fHTML5\u4e2d\u7684\u5e38\u89c1\u7684\u6587\u4ef6\u64cd\u4f5c\u76f8\u5173\u7684\u63a5\u53e3\u3002FileError  [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[1202,1315,1205,1316,1317],"class_list":["post-1574","post","type-post","status-publish","format-standard","hentry","category-html5","tag-blob","tag-fileerror","tag-filereader","tag-filesystem","tag-security_err"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1574","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1574"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1574\/revisions"}],"predecessor-version":[{"id":1575,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1574\/revisions\/1575"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1574"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1574"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}