做一个代码如何能让别人点一下显示所有人点击次数,看一下下面的,我在本地试点了没变化
</head><body><scripttype="text/javascript"src="http://ajax.googleapis.com/ajax/libs/j...
</head>
<body>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#but").click(function(){
$.ajax({
type:"POST",
url:"count.php?t="+Math.random(),
data:"num="+$(this).val(),
success:function(msg){
$("#but").val(msg);
}
});
});
});
</script>
<input type="submit" name="num" value="00000" id="but" />
</body>
</html> 展开
<body>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#but").click(function(){
$.ajax({
type:"POST",
url:"count.php?t="+Math.random(),
data:"num="+$(this).val(),
success:function(msg){
$("#but").val(msg);
}
});
});
});
</script>
<input type="submit" name="num" value="00000" id="but" />
</body>
</html> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询