53.遇到SyntaxError: Unexpected token

转自:https://segmentfault.com/q/1010000002649920/a-1020000002655984

不知道你自己现在已经发现问题没,

Unexpected token : in D: ext_node odejs-demoviewsindex.ejs while compiling ejs
意思就是在编译index.ejs的时候遇到了不期望的:,然后看你的代码,很明显

 
<title><%=: title %></title>

这里多了个冒号,Σ( ° △ °|||)︴

原文地址:https://www.cnblogs.com/sharpest/p/8074712.html