Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 NodeJS 中使用 Jade 作为模板。
我想发送一个复选框的值。
input#isNewProduct.checkbox(type='checkbox', name="isNewProduct", checked=product.isNewProduct)
但它总是以形式发送真实。
我哪里错了?
试试这个:
checked=(product.isNewProduct || undefined)