对于初学者来说课程只能起到熟悉各种标签而已(个人感觉)...虽然有编程很好,但是没有习题我觉得还是效果不大。唉...
2015-08-27
<script type="text/javascript">
$(function () {
$("#seltest").bind("change", function () {
if ($(this).val() == "苹果")
$(function () {
$("#seltest").bind("change", function () {
if ($(this).val() == "苹果")
2015-08-27
$("#default").html($("#divtest").html());
2015-08-27
$($html).appendTo(".green");的话 就是拼接到里面啦
2015-08-27
$(function () {
var $i=0.2
$("span").each(function (index) {
$(this).fadeTo(3000,$i);
$i=$i+0.2;
});
});
var $i=0.2
$("span").each(function (index) {
$(this).fadeTo(3000,$i);
$i=$i+0.2;
});
});
2015-08-27
<script type="text/javascript">
$(function () {
var intI = 0;
$("div").one("click", function () {
intI++;
$(this).html("dfdfdfd "+intI+" time");
})
});
</script>
$(function () {
var intI = 0;
$("div").one("click", function () {
intI++;
$(this).html("dfdfdfd "+intI+" time");
})
});
</script>
2015-08-27
<script type="text/javascript">
$(function () {
$('#btntest').bind("click mouseout",function () {
$(this).attr("disabled", "true");
})
});
</script>
$(function () {
$('#btntest').bind("click mouseout",function () {
$(this).attr("disabled", "true");
})
});
</script>
2015-08-27
$("#default").html($("#divtest").html())
2015-08-27
<script>
$(document).ready(function(){
$("a").click(function(){
if($("a").html()=="更多"){
$("li:hidden").show();
$("a").html("简化");
}else{
$("a").html("更多");
$("li:eq(4)").hide();
$("li:eq(5)").hide();
$("li:eq(6)").hide();
}
});
});
</script>
$(document).ready(function(){
$("a").click(function(){
if($("a").html()=="更多"){
$("li:hidden").show();
$("a").html("简化");
}else{
$("a").html("更多");
$("li:eq(4)").hide();
$("li:eq(5)").hide();
$("li:eq(6)").hide();
}
});
});
</script>
<body>
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li style="display:none">5</li>
<li style="display:none">6</li>
<li style="display:none">7</li>
<li>8</li>
</ul>
<a href="#">更多</a>
</body>
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li style="display:none">5</li>
<li style="display:none">6</li>
<li style="display:none">7</li>
<li>8</li>
</ul>
<a href="#">更多</a>
</body>
其实不知道<i>标签的也可以用: $(".red").wrapInner("<font style='font-style:italic;'>");来实现
2015-08-26