ITPub博客

首页 > 应用开发 > > 为什么alert 没有弹出1啊??????????

为什么alert 没有弹出1啊??????????

作者:kgdlnyq 时间:2019-08-19 16:39:33 0 删除 编辑

<!DOCTYPE html>

<html>

<head>

    <meta  http-equiv="content-type" content="text/html"  charset="UTF-8">

    <title>lightBox</title>

    <script type="text/javascript" src= "jQuery.js" > </script>

    <script type="text/javascript" src= "demo.js" > </script>

    <link rel="stylesheet" href="bas.css" type="text/css">

    <link rel="stylesheet" href="box.css" type="text/css">

</head>

<body>

<!--遮罩层-->

<div id="lightbox-max"></div>

<!--弹出层-->

<div id="lightbox-poput">

    <div>

        <span class="lightbox-btn lightbox-btn-show"></span>

        <img src="2-2.jpg" width="100%">

        <span class="light-next-btn lightbox-next-btn-show"></span>

    </div>

    <div>

        <div>

            <p>标题:非铁</p>

        <span>索引:0027</span>

        </div>

        <div></div>

    </div>

</div>

<script>

    $(function(){

        var Light=new lightBox();

    });

</script>

</body>

</html

;(function($){

    alert(1);

    var lightBox=function(){

        alert(2);

    };

    lightBox.prototype={

    };

    window["lightBox"]=lightBox;

})(jQuery);

为什么alert  没有弹出1啊??????????

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/4589/viewspace-3170813/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2019-08-13

  • 博文量
    87
  • 访问量
    1108