$(document).ready(function(){
var hide=$("li:hidden");
$("a").click(function(){
$("a").html()=="简化"?$("a").html("更多"):$("a").html("简化");
hide.css("display")=="block"?hide.css("display","none"):hide.css("display","block");
});
});
var hide=$("li:hidden");
$("a").click(function(){
$("a").html()=="简化"?$("a").html("更多"):$("a").html("简化");
hide.css("display")=="block"?hide.css("display","none"):hide.css("display","block");
});
});
<body>
<h3>使用clone()方法复制元素</h3>
<span class="red" title="hi">我是100RMB</span>
<script type="text/javascript">
$('body').append($('.red').clone())
</script>
</body>
<h3>使用clone()方法复制元素</h3>
<span class="red" title="hi">我是100RMB</span>
<script type="text/javascript">
$('body').append($('.red').clone())
</script>
</body>
2016-03-18
var newd = '<span class="red">,兄弟</span>';
$('.green').after(newd);
$('.green').after(newd);
2016-03-18
var exist = $('.green'),
$html = '<span class="red">土豪,<span/>';
exist.before($html);
$html = '<span class="red">土豪,<span/>';
exist.before($html);
2016-03-18
var ele = $('.red');
ele.appendTo('div');
ele.appendTo('div');
2016-03-18
$("#content").css({background:'red',color:"#fff"});
2016-03-18
$("#content").css({'background':'red','color':"#fff"});
2016-03-18
url:"http://www.imooc.com/data/check.php",
type:"post",
success:function(data){哪里问题
type:"post",
success:function(data){哪里问题
2016-03-18
var url = $('#a1').attr('href');
$("tip").html(url);
$("tip").html(url);
2016-03-18
$('#frmTest :button').addClass("bg_blue");
2016-03-18