[英]Javascript - Find opening and closing bracket positions on a string?
[英]The end of the string was reached with no closing bracket found: NodeJS & Jade
我开始沿着节点的路径前进(跟随mongo教程滚动 ),并编写了以下玉文件
extends layout
block content
h1= title
form( method="post")
div
div
span Title :
input(type="text", name="title", id="editArticleTitle")
div
span Body :
textarea(name="body", rows=20, id="editArticleBody)// <--- This line!
div#editArticleSubmit
input(type="submit", value="Send")
我得到The end of the string was reached with no closing bracket found.
从玉字符解析器中出来。 它归咎于以上代码中所指向的行。 我肯定有可能遗漏了一个括号,但没有看到它可能在哪里。
这是堆栈跟踪:
The end of the string was reached with no closing bracket found.
at Function.parseMax (/home/me/Documents/node/blog/node_modules/jade/node_modules/character-parser/index.js:26:13)
at Object.Lexer.bracketExpression (/home/me/Documents/node/blog/node_modules/jade/lib/lexer.js:138:33)
at Object.Lexer.attrs (/home/me/Documents/node/blog/node_modules/jade/lib/lexer.js:524:24)
at Object.Lexer.next (/home/me/Documents/node/blog/node_modules/jade/lib/lexer.js:788:15)
at Object.Lexer.lookahead (/home/me/Documents/node/blog/node_modules/jade/lib/lexer.js:122:46)
at Object.Parser.lookahead (/home/me/Documents/node/blog/node_modules/jade/lib/parser.js:116:23)
at Object.Parser.parseTag (/home/me/Documents/node/blog/node_modules/jade/lib/parser.js:618:25)
at Object.Parser.parseExpr (/home/me/Documents/node/blog/node_modules/jade/lib/parser.js:199:21)
at Object.Parser.block (/home/me/Documents/node/blog/node_modules/jade/lib/parser.js:593:25)
at Object.Parser.tag (/home/me/Documents/node/blog/node_modules/jade/lib/parser.js:722:26)
天色已晚。 我错过了结束语
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.