星空网 > 软件开发 > Java

jquery toggle(listenerOdd, listenerEven)

1. example:

<!DOCTYPE HTML>
<html>
    <head></head>
    <body>
        <div id="chan">click me again!!</div>
        <script type="text/javascript" src='/images/loading.gif' data-original="jquery.js"></script>
        <script>
            $(function(){
                $("#chan").toggle(function(event){
                    $(event.target).css('color','red');
                },function(event){
                    $(event.target).css('color','blue');
                });
            });
        </script>
    </body>
</html>

2.每当触发click事件就相互切换




原标题:jquery toggle(listenerOdd, listenerEven)

关键词:jquery

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

Viral Launch:https://www.goluckyvip.com/tag/26995.html
Viralix:https://www.goluckyvip.com/tag/26996.html
Viraltag:https://www.goluckyvip.com/tag/26997.html
ViralWoot:https://www.goluckyvip.com/tag/26998.html
Vireo Health:https://www.goluckyvip.com/tag/26999.html
费率调整数据:https://www.goluckyvip.com/tag/27.html
大同旅游攻略一日游 山西大同一日游旅游景点有哪些:https://www.vstour.cn/a/408251.html
如何从帽儿山到哈尔滨火车站(详细交通路线及注意事项):https://www.vstour.cn/a/408252.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流