jade过滤器
以上語法基本講完了jade的語法,然后在jade里面并不僅僅局限于使用jade語法,同樣可以使用其他的插件語言,這種機制在jade里面稱為filter,在jade里面加入過濾器用冒號
?
markdown :markdownhi,this is **jade** [link](http://imooc.com) => <p>hi,this is <strong>jade</strong> <a href="http://imooc.com">link</a></p>?
less style:lessbody{p{color:#ccc}} => <style>body p { color: #cccccc; } </style>?
coffee-script script:coffeeconsole.log 'this is coffee' => <script>(function() { console.log('this is coffee'); }).call(this); </script>?
?
轉載于:https://www.cnblogs.com/wzndkj/p/9298418.html
總結

- 上一篇: vue 使用element 菜单与tab
- 下一篇: (thinkphp、jQuery)aja