看板
[ Ajax ]
討論串[問題] jquery的小疑問
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
你可以試著改寫這樣就行了:). $('a').click(function(){. //$(this)是指被觸發的那個物件. var id = $(this).attr('id');. alert(id);. });. <a href="#" id="one">點這個會秀出「one」</a>. <a
(還有17個字)
內容預覽:
最近剛開始學ajax. 我使用jquery,有一個小小疑惑想請大家幫忙. 假設我寫了這樣的程式碼. $("a#test").click(function(){. alert( "test" );. return false;. });. <a href="#" id="test">test</a>.
(還有485個字)
首頁
上一頁
1
下一頁
尾頁