{"id":108,"date":"2021-01-18T20:42:32","date_gmt":"2021-01-18T12:42:32","guid":{"rendered":"http:\/\/gjweb.top\/?p=108"},"modified":"2021-01-18T20:42:33","modified_gmt":"2021-01-18T12:42:33","slug":"vue%e9%a1%b9%e7%9b%ae%e5%85%bc%e5%ae%b9ie","status":"publish","type":"post","link":"https:\/\/gjweb.top\/?p=108","title":{"rendered":"vue\u9879\u76ee\u517c\u5bb9IE"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">1.\u8fd0\u884c\u5728ie9-11\u4e2daxios\u7684\u517c\u5bb9\u95ee\u9898<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>npm install es6-promise --save-dev<\/code><\/pre>\n\n\n\n<p>\u5728main.js \u4e2d\u8bbe\u7f6e<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import promise from 'es6-promise';\npromise.polyfill();<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">2.\u517c\u5bb9ie9\u3001IE10\u53ef\u80fd\u4f1a\u9047\u5230\u8bed\u6cd5\u6216\u8005promise\u9519\u8bef<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>npm install babel-polyfill<\/code><\/pre>\n\n\n\n<p>\u5728main.js \u4e2d\u8bbe\u7f6e<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import 'babel-polyfill';<\/code><\/pre>\n\n\n\n<p>\u5728build\u6587\u4ef6\u4e2dwebpack.base.conf.js<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>module.exports = {\n  entry: {\n    app: &#91;\n    + 'babel-polyfill',\n    '.\/src\/main.js']\n  },\n  ...<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">3.\u5728ie\u62a5\u8bed\u6cd5\u9519\u8bef\uff0c\u964d\u4f4ewebpack-dev-server\u7248\u672c<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>npm install webpack-dev-server@2.6.1<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>1.\u8fd0\u884c\u5728ie9-11\u4e2daxios\u7684\u517c\u5bb9\u95ee\u9898 \u5728main.js \u4e2d\u8bbe\u7f6e 2.\u517c\u5bb9ie9\u3001IE10\u53ef\u80fd\u4f1a\u9047\u5230\u8bed\u6cd5 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-108","post","type-post","status-publish","format-standard","hentry","category-vue"],"_links":{"self":[{"href":"https:\/\/gjweb.top\/index.php?rest_route=\/wp\/v2\/posts\/108","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gjweb.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gjweb.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gjweb.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gjweb.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=108"}],"version-history":[{"count":0,"href":"https:\/\/gjweb.top\/index.php?rest_route=\/wp\/v2\/posts\/108\/revisions"}],"wp:attachment":[{"href":"https:\/\/gjweb.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gjweb.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gjweb.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}