来源于:jade

伪代码: 一般用来模拟真实代码的一种简写方式

 

伪代码:

 1 !!! 5
 2 html(lang="en")
 3   head
 4     title= pageTitle
 5     :javascript
 6       | if (foo) {
 7       |    bar()
 8       | }
 9   body
10     h1 Jade - node template engine
11     #container
12       - if (youAreUsingJade)
13          You are amazing
14       - else
15          Get on it!
16          Get on it!
17          Get on it!
18          Get on it!

 

真实代码:

<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Jade</title>
    <script type="text/javascript">
      //<![CDATA[
      if (foo) {
          bar()
      }
      //]]>
    </script>
  </head>
  <body>
    <h1>Jade - node template engine</h1>
    <div id="container">
      <p>You are amazing</p>
    </div>
  </body>
</html>    

 

相关文章:

  • 2022-01-15
  • 2021-04-25
  • 2021-07-15
  • 2022-01-19
  • 2021-11-30
  • 2022-02-11
  • 2022-03-05
猜你喜欢
  • 2022-12-23
  • 2021-09-22
  • 2022-12-23
  • 2021-07-15
  • 2023-03-04
  • 2022-12-23
相关资源
相似解决方案