jQuery截断插件 [英] jquery truncate plugin
本文介绍了jQuery截断插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有一个jquery截断插件,其内容中的HTML没问题?
Is there a jquery truncate plugin that doesn't have trouble with HTML in the content?
例如,此插件不能很好地处理HTML:
For instance this plugin does not handle HTML well:
http://www.reindel.com/truncate/
推荐答案
我假设您拥有最新版本.
I'm assuming you've got the most recent version.
这里还有更多可能会有所帮助的地方.不过,无法评论其适用性:
There's a couple more here which might may help. Can't comment on their suitability, though:
http://github.com/jsillitoe/jquery-condense-plugin/tree
http://code.google.com/p/jquery-text-truncate /
这篇关于jQuery截断插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文