http://weibo.com/1779194137/AtKLByLCH
但是作者说在console里也能调用,这……
(function(){var $hny=$('<audio src=http://s.segmentfault.com/img/audio/happynewyear.m4a?14.1.23.1 />');var $gn=$('<audio src=http://s.segmentfault.com/img/audio/goodnight.m4a?14.1.23.1 />');var $hnysf=$('<audio src=http://s.segmentfault.com/img/audio/happynewyearsf.m4a?14.1.23.1 />');if(window.location.search=="?q=%E6%96%B0%E5%B9%B4%E5%BF%AB%E4%B9%90"){$hny[0].play();}
闭包的内部变量里面我怎么调用?
但是作者说在console里也能调用,这……
(function(){var $hny=$('<audio src=http://s.segmentfault.com/img/audio/happynewyear.m4a?14.1.23.1 />');var $gn=$('<audio src=http://s.segmentfault.com/img/audio/goodnight.m4a?14.1.23.1 />');var $hnysf=$('<audio src=http://s.segmentfault.com/img/audio/happynewyearsf.m4a?14.1.23.1 />');if(window.location.search=="?q=%E6%96%B0%E5%B9%B4%E5%BF%AB%E4%B9%90"){$hny[0].play();}
闭包的内部变量里面我怎么调用?