【发布时间】:2012-02-01 09:19:22
【问题描述】:
我的脚本只是显示还剩多少字符需要输入。
因此,<span class="number">150</span> 的每个 keyup html 都使用 jquery 的 html() 替换为可用数字。
我已经尝试过this way,但在 FF 中仍然变得非常缓慢。
有没有其他方法可以解决这个问题?
【问题讨论】:
-
你试过用
textContent代替 -
你能贴一些代码吗?