Jade之注释
2015-11-22 16:58
239 查看
注释
jade注释可以保留在编译后生成的html中,也可以不保留。jade:
// 这个会保留下来 p Hello //- 这个不会保留 p World
html:
// 这个会保留下来 <p>Hello</p> <p>World</p>
块注释
jade支持注释一块内容jade:
body // As much text as you want can go here.
html:
<body> <!-- As much text as you want can go here. --> </body>
条件注释
jade条件注释与html中的条件注释一样。jade:
<!--[if IE 8]> <html lang="en" class="lt-ie9"> <![endif]--> <!--[if gt IE 8]><!--> <html lang="en"> <!--<![endif]-->
html:
<!--[if IE 8]> <html lang="en" class="lt-ie9"> <![endif]--> <!--[if gt IE 8]><!--> <html lang="en"> <!--<![endif]-->
相关文章推荐
- 钢条切割问题
- Java读取文件MD5的两种方案
- 树形dp之删边
- Jade之Code
- 信息安全系统设计基础实验一—20135222胡御风20135215黄伟业
- P问题、NP问题、NPC问题以及NP-hard问题理解与区分
- 中间件简介
- 【C语言】【面试题】【笔试题】模拟实现strncpy
- maven学习2——pom.xml详解
- NYOJ-20 吝啬的国度
- ls ,tree,用法简单命令;alias别名用法(临时设置和永久设置)
- Jade之属性
- 第十一章 Intent原理与使用
- 【网络基础】计算机网络常考知识点整理
- iOS中的隐式动画
- 雨天+图书馆+一个人——忍不住记录一下最近
- 【NOIP2015】D2-T1跳石头,二分答案
- VC 6.0调试方法
- leetcode Merge Two Sorted Lists
- 关于Android 中 Bitmap 内存回收的一点心得