久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <small id='0R5o3'></small><noframes id='0R5o3'>

      <bdo id='0R5o3'></bdo><ul id='0R5o3'></ul>

    <i id='0R5o3'><tr id='0R5o3'><dt id='0R5o3'><q id='0R5o3'><span id='0R5o3'><b id='0R5o3'><form id='0R5o3'><ins id='0R5o3'></ins><ul id='0R5o3'></ul><sub id='0R5o3'></sub></form><legend id='0R5o3'></legend><bdo id='0R5o3'><pre id='0R5o3'><center id='0R5o3'></center></pre></bdo></b><th id='0R5o3'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='0R5o3'><tfoot id='0R5o3'></tfoot><dl id='0R5o3'><fieldset id='0R5o3'></fieldset></dl></div>
        <legend id='0R5o3'><style id='0R5o3'><dir id='0R5o3'><q id='0R5o3'></q></dir></style></legend>

        <tfoot id='0R5o3'></tfoot>

        Tag Helpers - 自關閉 HTML 標簽是個壞習慣?

        Tag Helpers - Self closing HTML tags is a bad habit?(Tag Helpers - 自關閉 HTML 標簽是個壞習慣?)
      1. <tfoot id='ZN9is'></tfoot>

        • <bdo id='ZN9is'></bdo><ul id='ZN9is'></ul>

            <legend id='ZN9is'><style id='ZN9is'><dir id='ZN9is'><q id='ZN9is'></q></dir></style></legend>
            <i id='ZN9is'><tr id='ZN9is'><dt id='ZN9is'><q id='ZN9is'><span id='ZN9is'><b id='ZN9is'><form id='ZN9is'><ins id='ZN9is'></ins><ul id='ZN9is'></ul><sub id='ZN9is'></sub></form><legend id='ZN9is'></legend><bdo id='ZN9is'><pre id='ZN9is'><center id='ZN9is'></center></pre></bdo></b><th id='ZN9is'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='ZN9is'><tfoot id='ZN9is'></tfoot><dl id='ZN9is'><fieldset id='ZN9is'></fieldset></dl></div>
              <tbody id='ZN9is'></tbody>

            1. <small id='ZN9is'></small><noframes id='ZN9is'>

                  本文介紹了Tag Helpers - 自關閉 HTML 標簽是個壞習慣?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我將 TagHelpers 合并到我的 MVC vNext 項目中,我意識到當我自行關閉 HTML 標簽時它們不起作用.

                  I am incorporating TagHelpers in my MVC vNext project, and I realized they don't work when I self close the HTML tags.

                  @addTagHelper "*, Microsoft.AspNet.Mvc.TagHelpers"
                  
                  <label asp-for="FirstName"/> <!-- self closing tag -->
                  
                  <span asp-validation-for="FirstName"/> <!-- self closing tag -->
                  

                  而且,當我放置結束標簽時,我會看到正在顯示的值.

                  And, insteand when I put the closing tags, I see the values being displayed.

                  <label asp-for="FirstName"></label>
                  
                  <span asp-validation-for="FirstName"></span>
                  

                  生成的 HTML

                  <label for="FirstName">FirstName</label>
                  <span class="field-validation-error" data-valmsg-for="FirstName" data-valmsg-replace="true">
                      <span id="FirstName-error" class="">The FirstName field is required</span>
                  </span>
                  

                  我想知道什么,它有什么不同?而且,自我關閉配對標簽是一個壞習慣.如果您知道一些關于此設計原則的文章,請與我分享,不勝感激.

                  What I want to know, what difference does it make? And, is self closing the paired tags a bad habit. If you know some article which talks about this design principle, please share with me, it would be much appreciated.

                  推薦答案

                  它們不起作用的原因是因為MVC 標簽助手不會改變元素是否自動關閉"(來自問題中的評論 #4475).

                  The reason they do not work is because the "MVC tag helpers do not change whether an element is self-closing or not" (from comments in issue #4475).

                  這是 ASP.NET 中的一個已知問題,計劃是在具有結束標記的非空元素的情況下在 VS IDE 中顯示警告(請參閱問題 #398).一位 ASP.NET 開發人員在問題 #1302 中評論說:

                  It is a known issue in ASP.NET and the plan is to show a warning in VS IDE under the scenario of a non-void element having an end tag (see issue #398). One of ASP.NET developers commented in issue #1302 that:

                  這是當前的設計,但我們在行為上有一些問題(打開和關閉)"

                  "this is the current design but we have a few issues (open and closed) on the behaviour"

                  這篇關于Tag Helpers - 自關閉 HTML 標簽是個壞習慣?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  html2canvas captures everything except the content of an inner canvas(html2canvas 捕獲除內部畫布內容之外的所有內容)
                  Showing an offline OSM map file. Suggestion: an MB Tiles file with Js.library(顯示離線 OSM 映射文件.建議:一個帶有 Js.library 的 MB Tiles 文件)
                  Clicking a leaflet marker takes you to URL(單擊傳單標記會將您帶到 URL)
                  Assign ID to marker in leaflet(為傳單中的標記分配 ID)
                  Set Leaflet Overlay Off in the Layer Control(在圖層控件中設置 Leaflet Overlay Off)
                  z-index not working as intended(z-index 未按預期工作)
                    <tbody id='12Y71'></tbody>
                    • <tfoot id='12Y71'></tfoot>

                      <small id='12Y71'></small><noframes id='12Y71'>

                    • <i id='12Y71'><tr id='12Y71'><dt id='12Y71'><q id='12Y71'><span id='12Y71'><b id='12Y71'><form id='12Y71'><ins id='12Y71'></ins><ul id='12Y71'></ul><sub id='12Y71'></sub></form><legend id='12Y71'></legend><bdo id='12Y71'><pre id='12Y71'><center id='12Y71'></center></pre></bdo></b><th id='12Y71'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='12Y71'><tfoot id='12Y71'></tfoot><dl id='12Y71'><fieldset id='12Y71'></fieldset></dl></div>

                        <legend id='12Y71'><style id='12Y71'><dir id='12Y71'><q id='12Y71'></q></dir></style></legend>
                          • <bdo id='12Y71'></bdo><ul id='12Y71'></ul>
                            主站蜘蛛池模板: 欧美一级视频免费看 | 久久久久网站 | 91aiai| 日韩中文在线视频 | www.日韩欧美 | 91久久久久久久久久久久久 | 国产成人精品一区二区三区在线观看 | 国产成人久久 | 婷婷综合 | k8久久久一区二区三区 | 亚洲+变态+欧美+另类+精品 | 女人牲交视频一级毛片 | 成人精品一区二区三区四区 | 国产精品特级片 | 日韩av在线中文字幕 | 精品欧美乱码久久久久久1区2区 | 欧美jizzhd精品欧美巨大免费 | 国产亚洲精品精品国产亚洲综合 | 久久亚洲综合 | 精品国产欧美一区二区三区成人 | 精品国产乱码久久久久久果冻传媒 | 国产日韩欧美精品 | 色香蕉在线 | 亚洲三级在线观看 | 日韩一级精品视频在线观看 | 国产最新网址 | 亚洲人人 | 久久久激情视频 | 超碰3| 国产二区三区 | 国产高清在线精品 | 欧美在线色 | 免费在线观看成人av | 日本一区二区电影 | 日日骚网 | 国产最新视频在线 | 99re热精品视频 | 国产精品视频免费观看 | 亚洲小说图片 | 成人免费观看视频 | 亚洲电影成人 |