码迷,mamicode.com
首页 > Web开发 > 详细

jquery实用方法

时间:2016-05-23 21:06:36      阅读:137      评论:0      收藏:0      [点我收藏+]

标签:

$(document).bind("click",function(e){
//class为phone-show的是菜单,id为go_phone的是打开菜单的按钮            
if($(e.target).closest(".phone-show").length == 0 && $(e.target).closest("#go_phone").length == 0){
         //点击phone-show之外的区域且id不是go_phone,则执行下面的程序
                web.utility.hideLayerModal();
                $(document.body).css({
                "overflow-y":"scroll"
                });
        }
});


$(‘.article-title‘).bind(‘input propertychange‘,function(){ //实时监听input输入内容,并作出相应处理
var title = $(this).val();
        $(‘.contribute-header h1‘).html(title);
}); 

jquery实用方法

标签:

原文地址:http://www.cnblogs.com/lixiaodi/p/5521049.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!