<a href="#" onClick="qh()">更多</a><script>
$(".none").hide();
function qh(){
if($("a").html()=="更多"){
$(".none").show();
$("a").html("简洁");
}else{
$(".none").hide();
$("a").html("更多")
} }
</script>
$(".none").hide();
function qh(){
if($("a").html()=="更多"){
$(".none").show();
$("a").html("简洁");
}else{
$(".none").hide();
$("a").html("更多")
} }
</script>
<ui>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
<li class="none">6</li>
<li class="none">7</li>
<li class="none">8</li>
<li>9</li>
</ui>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
<li class="none">6</li>
<li class="none">7</li>
<li class="none">8</li>
<li>9</li>
</ui>
<a href="#" onClick="qh()">更多</a><script> $(".none").hide();function qh(){var zt=$("a").html();if(zt=="更多"){$(".none").show(); $("a").html("简化") }else{ $(".none").hide(); $("a").html("更多") } }</script>
已采纳回答 / Fayne丶VALSK
$.getScript("http://www.imooc.com/data/sport_f.js"),function(){ $this.attr("disabled", "true"); });应该是$.getScript("http://www.imooc.com/data/sport_f.js",function(){ $this.attr("disabled", "true...
2015-07-17
<script type="text/javascript">
var $txtOpt = $("select :selected").text();
$("#tip").html("选中内容为:" + $txtOpt);
</script>也可以吧
var $txtOpt = $("select :selected").text();
$("#tip").html("选中内容为:" + $txtOpt);
</script>也可以吧
2015-07-17