$('.cn').click(function() {
var pic_id = $(this).attr('href');
console.log(pic_id);
//alert(pic_id);
$.ajax({
type: "POST",
url: "<?php echo base_url();?>anda/coins",
async: false,
data: "pic_id="+pic_id,
dataType: 'json',
success: function(data){
//alert(data);
$('.cn_point').html(data.id);
}
});
});
我接到电话回值并显示在页面上,但得到刷新和跨度隐藏的价值。有没有人可以帮助我?我无法找到我的错误。错误的jQuery AJAX方法和页面刷新获得
认沽'返回false;而'$ .ajax'功能后'权 – asprin 2013-03-09 06:32:51
非常感谢。我阿司匹林解决我的问题...... – 2013-03-09 06:44:59