第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

求教jquery代碼何處錯誤,為何無法執(zhí)行隱藏與顯示更多操作??

求教jquery代碼何處錯誤,為何無法執(zhí)行隱藏與顯示更多操作??

xue111 2016-01-02 15:01:24
<!DOCTYPE html><html>? ? <head>? ? ? ? <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />? ? ? ? <title>挑戰(zhàn)題</title>? ? ? ? <script src="http://libs.baidu.com/jquery/1.9.0/jquery.js" type="text/javascript"></script>? ? </head>? ? <body>? ? ? ? <ul>? ? ? ? <li>11</li>? ? ? ? <li>22</li>? ? ? ? <li>33</li>? ? ? ? <li>44</li>? ? ? ? <li>55</li>? ? ? ? <li style="display:none">66</li>? ? ? ? <li style="display:none" >77</li>? ? </ul>? ? <div></div>? ? <a href="#" >更多</a>? ? ?</body>? ? <script type="text/javascript">? ? ? $("a").click(function(){? ? ? ? var text=$("a").html();? ? if(text=="更多"){? ? ? ? $("li:hidden").html();? ? ? ? $("a").html("隱藏");? ? ?}? ? ? else if(text=="隱藏"){? ? ? ? $("li:visible").html();? ? ? ? $("a").html("更多");? ? ?}});?? ? </script></html>求教jquery代碼何處錯誤,為何無法執(zhí)行隱藏與顯示更多操作??
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 1458 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號