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

标签 pug

在 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/

相关文章:

node.js - 使用 Mongoose 在 Jade 中显示数据

node.js - 哈巴狗图像作为链接

javascript - 嵌套的 Jade block 没有被渲染

javascript - 在 Electron js 中模板化数据库查询

node.js - Jade/pug 中的评论

javascript - 用 multer (nodeJs) 上传文件不起作用

javascript - jade 的语法支持 switch 语句吗?

css - Jade HTML - 添加到 layout.jade 主体

javascript - 在node.js中解析JSON并在jade中显示

express - Jade : How to include a javascript file