我试图将文本区域的 .value 设置为某个很长的字符串。它在其他浏览器上工作正常,但在 Firefox 上,整个字符串不会显示在文本区域中。我知道有一个 maxlength 属性。我没有设置这个。如果不设置,有默认值还是无限制?
最佳答案
否。来自 Mozilla:( link )
maxlength: The maximum number of characters (Unicode code points) that the user can enter. If it is not specified, the user can enter an unlimited number of characters.
关于javascript - Firefox 的 textarea 有默认的最大长度吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24193047/