Jquery –计算 contentEditable DIV 中单行的字符数
是否有可能计算单行的字符数。假设我们有一个5行的段落,是否可以统计每行的字符数。 到目前为止我能找到的所有内容都计算了整个段落的字符数......
Is it possible at all to count the number of characters for a single line. Let's say that we have a paragraph of 5 lines, is it possible to count the number of characters of each line.
Everything I was able to find so far counts the number of characters for the entire paragraph...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这应该有效
this should work