如果文本超过60/1000个字符,则使用AJAX创建一个测试项目以显示“更多"按钮 [英] Using AJAX, create a test project to show read more button if the text is more than 60/1000 characters

查看:46
本文介绍了如果文本超过60/1000个字符,则使用AJAX创建一个测试项目以显示“更多"按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果文本长度超过60/1000个字符,则使用AJAX创建一个测试项目以显示更多"按钮.在点击阅读更多内容时,它应该显示全文

[edit]仅标记[/edit]

Using AJAX, create a test project to show read more button if the text is more than 60/1000 characters in length. And on click of read more it should show complete text

[edit]Tags only[/edit]

推荐答案

有一个阅读更多文本摘要" jQuery 插件,您可以使用那个.

http://plugins.jquery.com/project/readmore [ http://rockycode.com/blog/upload/jtsnake/demo-readmore.html [ ^ ]
There is a "Read More text Abbereviater" jQuery plugin, you can use that.

http://plugins.jquery.com/project/readmore[^]

You can find the demo here

http://rockycode.com/blog/upload/jtsnake/demo-readmore.html[^]


这篇关于如果文本超过60/1000个字符,则使用AJAX创建一个测试项目以显示“更多"按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆