gpt4 book ai didi

pug - 使用 Jade 为元素添加多个属性

转载 作者:行者123 更新时间:2023-12-03 14:38:10 25 4
gpt4 key购买 nike

在 Jade ,input(type='text' placeholder='Type in text')产生语法错误。什么是正确的语法?

最佳答案

你需要一个逗号:

input(type='text', placeholder='Type in text')

https://github.com/visionmedia/jade/blob/master/examples/attributes.jade

快乐编码!

关于pug - 使用 Jade 为元素添加多个属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8406702/

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