<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml">??? <head>??????? <title>toggle()方法綁定多個函數</title>??????? <script src="http://libs.baidu.com/jquery/1.8.2/jquery.js" type="text/javascript"></script>??????? <link href="style.css" rel="stylesheet" type="text/css" />??? </head>??? <body>??????? <h3>toggle()方法綁定多個函數</h3>??????? <input id="btntest" type="button" value="點一下我" />??????? <div>我是動態顯示的</div>?????? ???????? <script type="text/javascript">?????????? $(function(){?????????????? $("#btntest").bind("click",function(){?????????????????? $("div").toggle();?????????????? })?????????????? });?????????? ???????? </script>??? </body></html>
這個是怎么實現div的顯隱性的,大哥大姐們
SNICKERS士力架
2016-04-19 11:07:11