0
我使用数据表显示一些价格表,我通过信函过滤价格。 我遇到的问题是,当我点击信件时,它将它传递给处理文件(bronze.fnReloadAjax),但不是。 相反,我得到的所有记录,因为href是空通过数据表中的字母过滤器不起作用
$(".whitelinks a").click(function(event) {
event.preventDefault();
$("a").removeClass("active");
$(this).addClass("active");
link = $(this).attr("href");
href = link.substring(1);
bronze.fnReloadAjax('price_list/plan_bronze.php?selection='+href);
});
那么链接的价值也是空的吗? –
不,不是空的 –
当我做 alert(link); 我收到了这封信。但是当我做 alert(href); 它回来了 –