jQuery基礎用法
選擇元素
$(selectors);$("#menu");
$("ul li");jQuery事件
$(document).ready(function() {
alert('您好,歡迎光臨');
}); $("button").click(function() {
alert('您好');
});常用jQuery方法
使用 $(this) 簡化程式碼複雜度
e.x. 練習

Last updated