javascript - vue prompts a syntax error, where is the error?
代言
代言 2017-06-28 09:29:03
0
5
820

The problem has been solved, I forgot to write export default. . . .

代言
代言

reply all(5)
迷茫

default: followed by a space

phpcn_u1582

Can your JS use ES6 syntax? I see that you use the babel-loader package

In ES6, default is a keyword. Keywords cannot be used as variable names or attribute names. You can try changing this default to another name

给我你的怀抱

Try changing default to another name

学霸

There are several things that need to be modified:

  1. line 24, 25 colors need a space after type/default,

  2. The ';' in line 30 should be removed
    Modify it like this and try again to see if there is still a problem

ringa_lee

Default should be a reserved word, try changing the name.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template