摘要: 1.Window.onload 的JQuery方法$(document).ready(function(){ //The Code!})可以简写为:$(function(){ //The Code!})2.添加和去除Css类$(function(){ $(“a.alink”).mouseover(function(){this.addClass(“over”); //添加样式 }).mouseout(function(){ this.removeClass(“over”); //去除样式})})3.动态切换样式$funciotn(){ $(a.alink).click(function(){ 阅读全文
posted @ 2012-04-23 20:07 piuba 阅读(223) 评论(0) 推荐(1) 编辑