0
function appendRefToLinks(ref){
alert("hi");
$j('a').each(function(i){
alert('hello');
$j(this).attr('href',$j(this).attr('href') + "?ref=" + $j.cookie.get("tb_ref"));
});
}
我看到嗨警報,但我必須在我的頁面上鍊接,我從來沒有看到你好....我在做什麼錯了?jQuery:這個循環如何完成是錯誤的
這段代碼什麼時候運行? – 2010-08-31 16:45:14
什麼是$ j?在代碼中.. – Hulk 2010-08-31 16:47:20