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.