jQuery代码必须包含在一个js文件里,不能直接放在页面上么?
一、jQuery选择符
$(document).ready(function(){.....});//页面加载格式
$('tabname') //取得所有标签为tabname的
$('#id') //
$('.class1') 取得所有class为class1的元素
$('div.horizontal:eq(1)')
//the second div with class of horizontal
所有元素的function:: addClass('className'); removeClass('className');
contains('characters');filter('without_charactors');
属性:end
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/21161680/viewspace-584608/
,如需转载,请注明出处,否则将追究法律责任。