Home > Backend Development > PHP Tutorial > ajax+php 无刷新有关问题。 求大牛

ajax+php 无刷新有关问题。 求大牛

WBOY
Release: 2016-06-13 12:44:32
Original
847 people have browsed it

ajax+php 无刷新问题。。。。 求大牛


    

         ajax+php 无刷新有关问题。 求大牛 " alt="">
    

    


    

        ">喜欢
        
    




<script><br /> $(function(){<br /> <br /> $(".xh").bind('click',function(){<br /> var id = $(this).attr('vv');<br /> $.ajax({<br /> type:'POST',<br /> url:'__URL__/addnum',<br /> data:'id='+id,<br /> //dataType:"json",<br /> success:function(res){<br /> var i = res; //服务器端返回的值<br /> <span style="color: #FF0000;"><br /> $(this).next().text(i); //这里怎么不能再无刷新状态改html页面的值???<br /> <br /> }<br /> });<br /> });<br /> <br /> });<br /> </script>
还有每个会员只能 点一次 click ,下次就不能点了。
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template