谷歌浏览器下,为啥不弹框
;(function($){ var Carousel=function(poster){ alert(poster); }; Carousel.prototype={ }; window["Carousel"]=Carousel; })(jQuery); //上面是carousel.js;下面是html内的js <script> $(function(){ var Carousel=new Carousel($("J_Poster").eq(0)); }); </script>