gpt4 book ai didi

pug - pug 中预期出现意外 token `tag`

转载 作者:行者123 更新时间:2023-12-02 05:20:54 27 4
gpt4 key购买 nike

我正在 keystone 中使用哈巴狗,在添加侧面导航时出现这样的错误。

> 6| a(href="#")About
--------------------^
7| a(href="#")Services
8| a(href="#")Client
9| a(href="#")Contact

Unexpected token `tag` expected `text`, `interpolated-code`, `code`, `:`, `slash`, `newline` or `eos`

最佳答案

标签/属性与其内容之间需要有一个空格(在右括号之后)才能使其有效 Pug:

a(href='#') About

文档中有关使用 tags with attributes in Pug 的更多示例

关于pug - pug 中预期出现意外 token `tag`,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54176695/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com