There is output in console.log, but an error will still be reported

environment

vue3+ts

Scenes

The console.log is output, but an error console.log(…) is not a function is still reported, as shown in the figure below
insert image description here

the code

insert image description here

Error reason

The next sentence begins with parentheses and the previous line has no terminator

Solution

add a semicolon
insert image description here

Guess you like

Origin blog.csdn.net/weixin_42255789/article/details/130214376