<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          SharpDOMC#網(wǎng)頁(yè)模板引擎

          聯(lián)合創(chuàng)作 · 2023-09-29 02:31

          SharpDOM 可以讓你直接使用 C# 的語(yǔ)法來(lái)編寫網(wǎng)頁(yè),舉個(gè)例子:

          下面是一段HTML代碼:

          <html>
          <head>
          <title>Title of the page</title>
          <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
          <link href="css/style.css" rel="stylesheet" type="text/css">
          <script href="/JavaScripts/jquery-1.4.2.min.js" type="text/javascript">
          </head>
          <body>
          <div>
          <h1>Test Form to Test</h1>
          <form id="Form1" type="post">
          <label>Parameter</label> =
          <input type="text">Enter value</input>
          <input type="submit" text="Submit !" />
          </form>
          <div>
          <p>Textual description of the footer</p>
          <a href="http://google.com">
          <span>You can find us here</span>
          </a>
          <div>
          Another nested container
          </div>
          </div>
          </div>
          </body>
          </html>

          使用 SharpDOM 來(lái)編寫的話,就變成了

          html[
          head[
          title[ "Title of the page" ],
          meta.attr(http-equiv: "contenttype", content: "html", charset: "utf-8"),
          link.attr(href: "css/style.css", rel: "stylesheet", type: "css"),
          script.attr(href:"/JavaScripts/jquery-1.4.2.min.js", type: "javascript")
          ],
          body[
          div[
          h1[ "Test Form to Test" ],
          form.attr(id: "Form1", type: "post")[
          label[ "Parameter" ], "=", input.attr(type:"text", value: "Enter value"), br,
          input.attr(type: "submit", value: "Submit !")
          ],
          div[
          p[ "Textual description of the footer" ],
          a.attr(href: "http://google.com" )[
          span[ "You can find us here"]
          ]
          ],
          div[ "Another nested container" ]
          ]
          ]
          ]
          瀏覽 15
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評(píng)論
          圖片
          表情
          推薦
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  久久亚洲福利视频 | 精品999久久久一级毛片 | 在线观看的毛片网站 | 亚洲高清在线视频 | 草逼电影|