为了账号安全,请及时绑定邮箱和手机立即绑定

怎么运行不了?标点也没出问题啊orz

怎么运行不了?标点也没出问题啊orz

(function($){ var container=$(".container"); var box=$(".box"); var buddy=$(".buddy"); var pop=$(".pop"); var open=$(".btn"); var close=$(".close"); var imgs=pop.find('img'); $.Velocity.RegisterUI('liyue.slideUpIn',{ defaultDuration:500, calls:[ [{opacity:[1,0],translateY:[0,100]}] ] }); $.Velocity.RegisterUI('liyue.slideDownOut',{ defaultDuration:300, calls:[ [{opacity:[0,1],translateY:[100,0]}] ] }); $.Velocity.RegisterUI('liyue.scaleIn',{ defaultDuration:300, calls:[ [{opacity:[1,0],scale:[1,0.3]}] ] }); $.Velocity.RegisterUI('liyue.scaleOut',{ defaultDuration:300, calls:[ [{opacity:[0,1],scale:[0.3,1]}] ] }); var seqInit=[{ elements:container, properties:'liyue.slideUpIn', options:{ delay:300 } },{ elements:box, properties:'liyue.slideUpIn', options:{ sequenceQueue:false } },{ elements:buddy, properties:'liyue.slideUpIn', options:{ sequenceQueue:false, delay:60 } }]; var seqClick=[{ elements:container, properties:'liyue.slideDownOut', },{ elements:box, properties:'liyue.slideDownOut', options:{ sequenceQueue:false } },{ elements:container, properties:'liyue.slideUpIn', },{ elements:pop, properties:'liyue.slideUpIn', options:{ sequenceQueue:false } },{ elements:img, properties:'liyue.scaleIn', }]; var seqClose=[,{ elements:img, properties:'liyue.scaleOut', },{ elements:container, properties:'liyue.slideDownOut', },{ elements:pop, properties:'liyue.slideDownOut', options:{ sequenceQueue:false } },{ elements:container, properties:'liyue.slideUpIn', },{ elements:box, properties:'liyue.slideUpIn', options:{ sequenceQueue:false } }]; $.Velocity.RunSequence(seqInit); open.on('click',function(){ $.Velocity.RunSequence(seqClick); }); close.on('click',function(){ $.Velocity.RunSequence(seqClose); });})(jQuery);
查看完整描述

1 回答

?
起名咋这么费劲呢

TA贡献39条经验 获得超10个赞

报什么错?贴出来

查看完整回答
反对 回复 2016-07-25
  • haBi
    haBi
    Unhandled promise rejection Promise__proto__: Promise[[PromiseStatus]]: "rejected"[[PromiseValue]]: Error: Velocity: First argument () was not a property map, a known action, or a registered redirect. Aborting.
  • haBi
    haBi
    报这个错
  • 1 回答
  • 1 关注
  • 1602 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信