企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
jQuery点击显示和隐藏CSS ``` <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("#but").click(function(){ if($(".exPara").css("display")=="none"){ $(".exPara").show(); }else{ $(".exPara").hide(); } }); }); </script> </head> <body> <button id="but" type="button">Click Me!</button> <div class="exPara" style="display:none"> 22222222 </div> </body> </html> ```