对警告感到困惑
Confused About Warning
我试图编写一个带有数字字段的数独板,但我的每个数字字段都返回了此警告(不是错误):
The specified value "\u00A0" is not a valid number. The value must match to the following regular expression: -?(\d+|\d+.\d+|.\d+)([eE][-+]?\d+)?
供参考,其中一个数字文件的代码如下所示:
<td><input type="number" id="EZT1A1" value=  max = 9 min = 1></input></td>
有人可以解释警告的含义以及我必须做些什么才能摆脱它吗?谢谢!
您收到此错误是因为您将   设置为值。您应该一起删除值字段或将其替换为有效数字以删除警告。
代码应为:
<td><input type="number" id="EZT1A1" max = 9 min = 1></input></td>
我试图编写一个带有数字字段的数独板,但我的每个数字字段都返回了此警告(不是错误):
The specified value "\u00A0" is not a valid number. The value must match to the following regular expression: -?(\d+|\d+.\d+|.\d+)([eE][-+]?\d+)?
供参考,其中一个数字文件的代码如下所示:
<td><input type="number" id="EZT1A1" value=  max = 9 min = 1></input></td>
有人可以解释警告的含义以及我必须做些什么才能摆脱它吗?谢谢!
您收到此错误是因为您将   设置为值。您应该一起删除值字段或将其替换为有效数字以删除警告。
代码应为:
<td><input type="number" id="EZT1A1" max = 9 min = 1></input></td>