摘要:
思路:点击当前li元素后是用removeClass()删除所有兄弟元素(使用siblings()获取)的class样式,然后使用addClass()为当前li添加class。具体演示如下:1、HTML结构:设计三个li元素GlenTaneJohn2、css样式:设计一个类selected,表示选中后... 阅读全文
posted @ 2015-11-30 21:05
星辰之力
阅读(1886)
评论(0)
推荐(0)
摘要:
查看一个简单的jQuery的例子来遍历一个JavaScript数组对象。var json = [ {"id":"1","tagName":"apple"}, {"id":"2","tagName":"orange"}, {"id":"3","tagName":"banana"}, ... 阅读全文
posted @ 2015-11-30 18:26
星辰之力
阅读(175)
评论(0)
推荐(0)
摘要:
1.$('ul li').remove();2.$('ul li').each(function(){$(this).remove();}); 3.$("ul").find("li").remove(); 4.$('ul').children().filter('li').remove(); 阅读全文
posted @ 2015-11-30 18:25
星辰之力
阅读(1387)
评论(0)
推荐(0)
摘要:
mybatis实战教程(mybatis in action),mybatis入门到精通 阅读全文
posted @ 2015-11-30 11:42
星辰之力
阅读(136)
评论(0)
推荐(0)
浙公网安备 33010602011771号