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

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

    <small id='ihYmr'></small><noframes id='ihYmr'>

      <bdo id='ihYmr'></bdo><ul id='ihYmr'></ul>
    <legend id='ihYmr'><style id='ihYmr'><dir id='ihYmr'><q id='ihYmr'></q></dir></style></legend>
  • <tfoot id='ihYmr'></tfoot>

      1. 在&lt;input type=“number"&gt;中允許2位小數

        Allow 2 decimal places in lt;input type=quot;numberquot;gt;(在lt;input type=“numbergt;中允許2位小數.)
      2. <tfoot id='D4iGP'></tfoot>

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

                  <small id='D4iGP'></small><noframes id='D4iGP'>

                  <legend id='D4iGP'><style id='D4iGP'><dir id='D4iGP'><q id='D4iGP'></q></dir></style></legend>
                  本文介紹了在&lt;input type=“number"&gt;中允許2位小數.的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我有一個 <input type="number">,我想將用戶的輸入限制為純數字或小數點后兩位小數.

                  I have a <input type="number"> and I want to restrict the input of the users to purely numbers or numbers with decimals up to 2 decimal places.

                  基本上,我要求輸入價格.

                  Basically, I am asking for a price input.

                  我想避免使用正則表達式.有辦法嗎?

                  I wanted to avoid doing regex. Is there a way to do it?

                  <input type="number" required name="price" min="0" value="0" step="any">
                  

                  推薦答案

                  step="any" 允許任意位數的小數,使用 step=".01",最多允許兩位小數.

                  Instead of step="any", which allows for any number of decimal places, use step=".01", which allows up to two decimal places.

                  規范中的更多詳細信息:https://www.w3.org/TR/html/sec-forms.html#the-step-attribute

                  More details in the spec: https://www.w3.org/TR/html/sec-forms.html#the-step-attribute

                  這篇關于在&lt;input type=“number"&gt;中允許2位小數.的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  JavaScript innerHTML is not working for IE?(JavaScript innerHTML 不適用于 IE?)
                  NETWORK_ERROR: XMLHttpRequest Exception 101(NETWORK_ERROR:XMLHttpRequest 異常 101)
                  how do I access XHR responseBody (for binary data) from Javascript in IE?(如何在 IE 中從 Javascript 訪問 XHR responseBody(用于二進制數據)?)
                  document.write() overwriting the document?(document.write() 覆蓋文檔?)
                  AngularJS Error: Cross origin requests are only supported for protocol schemes: http, data, chrome-extension, https(AngularJS 錯誤:跨源請求僅支持協議方案:http、data、chrome-extension、https) - IT屋-程序員軟件開發技術分
                  How to get the response of XMLHttpRequest?(如何獲得 XMLHttpRequest 的響應?)
                  <legend id='Ft4k5'><style id='Ft4k5'><dir id='Ft4k5'><q id='Ft4k5'></q></dir></style></legend>

                      <small id='Ft4k5'></small><noframes id='Ft4k5'>

                        <tbody id='Ft4k5'></tbody>
                      <tfoot id='Ft4k5'></tfoot>
                        <i id='Ft4k5'><tr id='Ft4k5'><dt id='Ft4k5'><q id='Ft4k5'><span id='Ft4k5'><b id='Ft4k5'><form id='Ft4k5'><ins id='Ft4k5'></ins><ul id='Ft4k5'></ul><sub id='Ft4k5'></sub></form><legend id='Ft4k5'></legend><bdo id='Ft4k5'><pre id='Ft4k5'><center id='Ft4k5'></center></pre></bdo></b><th id='Ft4k5'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Ft4k5'><tfoot id='Ft4k5'></tfoot><dl id='Ft4k5'><fieldset id='Ft4k5'></fieldset></dl></div>
                          • <bdo id='Ft4k5'></bdo><ul id='Ft4k5'></ul>
                            主站蜘蛛池模板: 欧洲精品码一区二区三区免费看 | 欧美视频一区二区三区 | 国产精品黄| 三级黄色片在线 | 中文字幕亚洲区 | 亚洲精品一区二区三区 | 久久久久久久久久久久久久国产 | 成人在线免费观看 | 午夜网 | 精品香蕉一区二区三区 | 日韩www视频| 天堂素人约啪 | 久久综合伊人 | 国产精品久久久久久久免费观看 | 成人在线免费视频 | 国产精品一区二区三区四区 | 色噜噜亚洲男人的天堂 | 91一区二区三区 | 国产精品久久久久久亚洲调教 | 青青草原精品99久久精品66 | 国产精品免费在线 | 91久久国产综合久久91精品网站 | 午夜精品一区二区三区在线视频 | 一区二区三区免费在线观看 | 亚洲精品日韩视频 | 欧洲精品码一区二区三区免费看 | 国产xxxx岁13xxxxhd| 久久天堂 | 国产精品久久久久久久久婷婷 | 精品www | 日韩欧美中文字幕在线观看 | 成人一区二区视频 | 日韩一区中文字幕 | 中文字幕在线一区二区三区 | 国产精品一区二区在线免费观看 | 最新日韩av | 国产午夜亚洲精品不卡 | 国产精品一区视频 | 欧美 日韩 国产 在线 | 欧美日韩淫片 | 精品久久精品 |