-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IE是如何兼容的? #1
Comments
你好,我测试了下,我的项目是兼容 IE 9(+) 的, |
你可以在 IE 浏览器里测试测试多个版本 |
@anjoy8 没有问题了,我解决了,在nuxt.js中引入: ...
module.exports = {
mode: 'universal',
/*
** Headers of the page
*/
head: {
...
script: [
{ src: 'https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/7.2.5/polyfill.min.js' }
],
...
},
...
/*
** Build configuration
*/
build: {
// 为 JS 和 Vue 文件定制 babel 配置 -> https://nuxtjs.org/api/configuration-build/#analyze
babel: {
presets({ isServer }) {
return [
[
require.resolve('@nuxtjs/babel-preset-app'),
{
targets: isServer
? { node: '10.4.0' }
: { ie: 9 }
}
]
]
}
},
...
}
} 通过如上的配置后,我的IE就能够正常打开了。 |
真棒的 |
请问大神,我按照你这个方法在IE下还是打不开,报错: |
适配低版本IE 编译完的js文件 把use strict 全替换"" 亲测可用 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
大神,请问您是如何兼容IE浏览器的,我的Nuxt.js项目在IE上各种问题,报SCRIPT1003的错误。
The text was updated successfully, but these errors were encountered: