$('.sixth').css('width', function(index, oldValue){
return parseInt(oldValue)+100;
});
return parseInt(oldValue)+100;
});
2017-10-27
昔人已乘黄鹤去,
此地空余黄鹤楼,
黄鹤一去不复返,
白云千载空悠悠。
晴川历历汉阳树,
芳草萋萋鹦鹉洲,
日暮乡关何处是,
烟波江上使人愁。
此地空余黄鹤楼,
黄鹤一去不复返,
白云千载空悠悠。
晴川历历汉阳树,
芳草萋萋鹦鹉洲,
日暮乡关何处是,
烟波江上使人愁。
2017-10-26
var es = $('*');
for(var i = 0; i < es.length; i++){
document.write(i + ': ' + es[i].typeName + '<br>');
}
document.write('We will we will fuck you, fuck you!');
for(var i = 0; i < es.length; i++){
document.write(i + ': ' + es[i].typeName + '<br>');
}
document.write('We will we will fuck you, fuck you!');
2017-10-26
方法一:
$('div:first').css('color', 'red');
方法二:
$('div:first-child').css('color', 'red');
方法三:
$('div:eq(0)').css('color', 'red');
$('div:first').css('color', 'red');
方法二:
$('div:first-child').css('color', 'red');
方法三:
$('div:eq(0)').css('color', 'red');
2017-10-25
$("#menu_con .tag p:first-child")
$("#menu_con .tag a:lt(4)")
$("#menu_con a[name='setColor']")
$(".tag a:nth-child(10)")
$("#menu_female .tag a:contains('更多')")
$("#menu_con .tag a:lt(4)")
$("#menu_con a[name='setColor']")
$(".tag a:nth-child(10)")
$("#menu_female .tag a:contains('更多')")