是否有计算器般的投票任何阿贾克斯(原型或jQuery插件)样品?原型、计算器、样品、插件

由网友(原来我也舍不得)分享简介:什么好样的AJAX实现投票类似于上下stackoverflow.com any good ajax samples for implementing voting similar to the up and down buttons of stackoverflow.com 推荐答案您像yoursite.com...

什么好样的AJAX实现投票类似于上下stackoverflow.com

any good ajax samples for implementing voting similar to the up and down buttons of stackoverflow.com

推荐答案

您像yoursite.com/vote?postid=1234&direction=up是在数据库中保存了投票表决创建页面。然后创建了投票按钮或链接,并执行一个Ajax请求,当用户点击该链接:

You create a page for voting like yoursite.com/vote?postid=1234&direction=up that saves the vote in the database. Then you create buttons or links for voting and perform an Ajax request when the user clicks the link:

jQuery的:

$.post("vote", { postid: the_id, direction: "up" })
阅读全文

相关推荐

最新文章