用户在我的网站上发表评论
我希望用户在我的网站上发表评论。 我已经制作了一个文本区域框,用户可以在其中发表评论并使用 jQuery 在同一页面上查看评论。 但一次只有一个用户可以发表评论。
我的网站是JSP的。
我希望用户发布尽可能多的评论,并且在加载页面时我想显示其他用户发表的评论。
I want users to post a comment in my website.
I have already made a textarea box where users can post comment and see the commment on the same page using jQuery.
But at a time only one user can post on comment.
My website is in JSP.
i want users to post as many comment as they can and while loading page i want to show the comments made by other user.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您更喜欢使用第三方插件而不是敲定自制的留言簿,我建议您灵活评论 东西...
这只是在您的网站上获得良好评论场景的最简单方法!
If you prefer using a third party plugin instead of hammering out a home-brewed guestbook, I would suggest flexi comment thingie...
it is simply the easiest way of getting a nice comment scene going on your website!
您可以不厌其烦地自己构建它。或者您可以使用第三方资源,例如 Disqus。
如果您要自己构建它,则需要使用的不仅仅是文本区域。您将需要某种重复控件来显示包装在某种 html 容器(如 div)中的每个单独的评论。您的 jsp 页面必须构建这些控件并在页面加载时将它们动态附加到 dom。
就我个人而言,我会寻求第三方资源。
You could go to the trouble of building it yourself. Or you could use a third party resource like Disqus.
If your going to build it yourself, you'll need to use more than just a text area. You will need some sort of repeating control that displays each individual comment wrapped in some sort of html container like a div. Your jsp page will have to build these controls and append them to the dom dynamically at page load.
Personally, I'd go for a third party resource.