vue question item is not displayed in the page IE and compatibility mode 360, effective pro-test

Solution: Install the "babel-polyfill"

1、命令:cnpm install --save-dev babel-polyfill 

2, is introduced at the inlet main.js file: import 'babel-polyfill', put the top of the page best.

3, found in the build folder webpack.base.conf.js the app: [ "./src/main.js"] change app: [ "babel-polyfill", "./src/main.js"]

which is:

module.exports = {
entry: {
app: ["babel-polyfill", "./src/main.js"]
}

Figure:

  In       the following:

If the page is not displayed:

The item <script type = "text / javascript"> </ script> type attribute to the <script type = "text / babel"> </ script>

It is normal to display the page.

 

Guess you like

Origin www.cnblogs.com/colorful-paopao1/p/11280643.html