首页 新闻 会员 周边

js隐式声明

0
悬赏园豆:100 [已关闭问题] 关闭于 2019-01-09 15:03

这段代码如何变成隐式声明 求解
jQuery(document).ready(function(){

var t9 = new PopupLayer({
    trigger:"#ele9",
    popupBlk:"#blk9",
    closeBtn:"#close9",
    useOverlay:true,
    useFx:true,
    offsets:{
        x:0,
        y:-41
    }
});
t9.doEffects = function(way){
    if(way == "open"){
        this.popupLayer.css({opacity:0.3}).show(300,function(){
            this.popupLayer.animate({
                left:(jQuery(document).width() - this.popupLayer.width())/2,
                top:(document.documentElement.clientHeight - this.popupLayer.height())/2 + jQuery(document).scrollTop(),
                opacity:0.8
            },300,function(){this.popupLayer.css("opacity",1)}.binding(this));
        }.binding(this));
    }else{
        this.popupLayer.animate({
            left:this.trigger.offset().left,
            top:this.trigger.offset().top,
            opacity:0.1
        },{duration:200,complete:function(){this.popupLayer.css("opacity",1);this.popupLayer.hide()}.binding(this)
        });
    }
}

});

布利秋秋迪布利多的主页 布利秋秋迪布利多 | 菜鸟二级 | 园豆:202
提问于:2018-12-24 13:57
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册