<%= for(var i=0;i<sendMessage.length;i++){ %> <div <%= if(sendMessage.question.quesType==1){%>class="checkbox"<%=}else{%>class="radio"<%=}%>> <div class="question"> <%= sendMessage.question.quesId+'.'+sendMessage.question.quesCont%> <b><%= if(sendMessage.question.quesType==1){%>[多選題]<%=}else{%><%=}%></b><i>*</i> </div> </div> <%= } %>頁面報錯Unexpected token for in D:exerciseviewsindex.ejs while compiling ejs If the above error is not helpful, you may want to try EJS-Lint: https://github.com/RyanZim/EJ...SyntaxError: Unexpected token for in D:exerciseviewsindex.ejs while compiling ejsIf the above error is not helpful, you may want to try EJS-Lint:https://github.com/RyanZim/EJ...
關于ejs的unexpected token
胡子哥哥
2018-12-20 18:19:12