SyntaxError: Unexpected token T in JSON at position 0

在写博客项目时,遇到了SyntaxError: Unexpected token T in JSON at position 0错误,这个错误的起因是编译模板时出错,重新检查发现:
SyntaxError: Unexpected token T in JSON at position 0_第1张图片
在模板中对div进行循环时,把comments加上了引号,导致模板引入数据错误

你可能感兴趣的:(Node.js,Express,MongoDB数据库,node.js)