Chrome auto formats input=number

后端 未结 8 1667
轻奢々
轻奢々 2020-12-02 16:20

I have a web application where I\'m specifying an input field to be a number using the HTML5 property type=\"number\".



        
8条回答
  •  爱一瞬间的悲伤
    2020-12-02 17:09

    Why would you want to disable localized formatting? If you want a different format, just change the localization settings of your PC. Why would a user not be interested to show a number in his or her local format? This is definitely not a bug in Chrome but a feature!

    It seems to me you are not really using a "number" as input but rather a "text" code with a pattern. See the other posts for suggestions to that.

提交回复
热议问题