首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我希望有人能帮我纠正我的小错误。我的主页正在工作,但联系人显示错误。

我希望有人能帮我纠正我的小错误。我的主页正在工作,但联系人显示错误。
EN

Stack Overflow用户
提问于 2021-07-02 19:38:25
回答 1查看 37关注 0票数 0
代码语言:javascript
复制
extends base.pug

block scripts
    script(src='/static/index.js')

block style
  style
      include ../static/style.css
      include ../static/styleContact.css

block content 
    div.container
    h1 Contact Us
    form(action='/contact', method= "post", class= "myForm")
        input(type="text" class= “name” name="name" placeholder="Enter your name")
        input(type="phone" class= “myInput” name="phone" placeholder="Enter your name")
        input(type="email" class= “myInput” name="email" placeholder="Enter your email")
        input(type="text" name="firstname" placeholder="Your name")
        button(class="btn")
          | Submit

此错误显示在我的铬

错误: E:\Web设计和开发\4 javascript\post网站75\views\contact.pug:15:34 13\ h1联系我们14收表格(action=‘/ Contact’,method= "post",class= "myForm")

15输入(type=“文本”class=名称“name=”名称“placeholder=”输入您的名字)(您的电子邮件“)18\x输入(type=”文本“name=”大名“placeholder=”您的名字)

语法错误: makeError处的意外字符“”(E:\ website & development\4 javascript\node网站75\node_modules\pug-error\index.js:34:13) Lexer.error (E:\Web设计和开发\4 javascript\node网站75\node_node\pug-lexer\index.js:62:15)位于Lexer.assertExpression (E:\Web设计和开发\4 javascript\node_modules\pug-lexer\index.js:96:12),位于Lexer.attributeValue (E:\Web设计与开发):\Web设计和开发\4 javascript\node网站75\node_modules\pug-lexer\index.js:1428:10)在Lexer.attribute (E:\Web设计和开发\4 javascript\node网站75\node_modules\pug-lexer\index.js:1275:30)在Lexer.attrs (E:\Web设计和开发\4 javascript\node网站75\node模块\pug-lexer\index.js:1454:20)在Lexer.callLexerFunction (E:\Web设计和开发\4 javascript\node网站):Lexer.callLexerFunction(E:\Web设计和开发\454:20)75\node_modules\pug-lexer\index.js:1647:23)在Lexer.advance (E:\Web设计和开发\4 javascript\node网站75\node_node\pug-lexer\index.js:1686:12)在Lexer.callLexerFunction (E:\Web设计和开发\4 javascript\node网站75\node\pug\lexer\index.js:1647:23)在Lexer.getTokens (E:\Web设计和开发\4 javascript\node模块\pug-index.js\pug:1706:12)

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-07-02 19:42:45

问题在于您的引号字符:“name”看起来可能有效,但您需要" (ASCII 22),而不是 (ASCII E2)。"0xe2“是非法的HTML。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68230511

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档