NutzCN Logo
问答 html 以模板的的js放的位置,怎么一直在一个不好的位置
发布于 2055天前 作者 qq_91afbf68 1329 次浏览 复制 上一个帖子 下一个帖子
标签:

我想放在最后的这句,怎么放的好

<script language="JavaScript">
$(document).ready(function () {

});

</script>

<!--

//-->
</script>
<!--  -->
<script src="${base!}/assets/js/echarts/echarts.js"></script>
<%}%>
<script language="JavaScript">
$(document).ready(function () {

});

</script>

<!--

//-->
</script>
<!--  -->
<script src="/bbnutzwk/assets/js/echarts/echarts.js"></script>

        </section>
    </section>


</div>
<div id="homeDetail" class="modal fade bs-modal-sm" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
        </div>
    </div>
</div>
<!--script-->
<script src="/bbnutzwk/assets/plugins/modernizr.js"></script>
<script src="/bbnutzwk/assets/js/jquery.pjax.js"></script>
<script src="/bbnutzwk/assets/bootstrap/js/bootstrap.js"></script>
<script src="/bbnutzwk/assets/plugins/jquery.form.js"></script>
<script src="/bbnutzwk/assets/plugins/parsley.min.js"></script>
<script src="/bbnutzwk/assets/plugins/parsley.zh_cn.js"></script>
<script src="/bbnutzwk/assets/plugins/jquery.sortable.js"></script>
<script src="/bbnutzwk/assets/plugins/jquery.nestable.js"></script>
<script src="/bbnutzwk/assets/plugins/icheck/icheck.js"></script>
<script src="/bbnutzwk/assets/plugins/jquery.slimscroll.min.js"></script>
<script src="/bbnutzwk/assets/plugins/jquery.easing.min.js"></script>
<script src="/bbnutzwk/assets/plugins/appear/jquery.appear.js"></script>
<script src="/bbnutzwk/assets/plugins/jquery.placeholder.js"></script>
<script src="/bbnutzwk/assets/plugins/fastclick.js"></script>
<script src="/bbnutzwk/assets/plugins/count-to/jquery.countTo.js"></script>
<script src="/bbnutzwk/assets/js/toast.js"></script>
<script src="/bbnutzwk/assets/plugins/chosen/chosen.jquery.min.js"></script>
<script src="/bbnutzwk/assets/plugins/treetable/jquery.treetable.js"></script>
<script src="/bbnutzwk/assets/plugins/datatables/jquery.dataTables.js"></script>
<script src="/bbnutzwk/assets/plugins/datatables/dataTables.bootstrap.js"></script>
<script src="/bbnutzwk/assets/plugins/jstree/jstree.min.js"></script>
<script src="/bbnutzwk/assets/plugins/switchery/switchery.js"></script>
<script src="/bbnutzwk/assets/plugins/stepy/jquery.stepy.js"></script>
<script src="/bbnutzwk/assets/plugins/stepy/jquery.validate.min.js"></script>
<script src="/bbnutzwk/assets/plugins/icheck/icheck.js"></script>
<script src="/bbnutzwk/assets/plugins/chosen/chosen.jquery.min.js"></script>
<script src="/bbnutzwk/assets/plugins/jquery.form.js"></script>
<script src="/bbnutzwk/assets/plugins/uploadifive/jquery.uploadifive.min.js"></script>
<script src="/bbnutzwk/assets/plugins/datepicker/bootstrap-datetimepicker.min.js"></script>
<script src="/bbnutzwk/assets/plugins/datepicker/locales/bootstrap-datetimepicker.zh-CN.js"></script>
<script src="/bbnutzwk/assets/plugins/emoji/emoji.js"></script>
<script src="/bbnutzwk/assets/plugins/sorttable/Sortable.min.js"></script>
<script src="/bbnutzwk/assets/plugins/jquery.qrcode.min.js"></script>
<script src="/bbnutzwk/assets/plugins/jquery.sparkline.js"></script>
<script src="/bbnutzwk/assets/plugins/x-editable/bootstrap-editable.js"></script>
<script src="/bbnutzwk/assets/plugins/moment.min.js"></script>
<script src="/bbnutzwk/assets/plugins/layer/laydate/laydate.js"></script>
<!-- <script src="/bbnutzwk/assets/plugins/layer/layui.js"></script>
<script src="/bbnutzwk/assets/plugins/layer/layui.all.js"></script> -->
<!-- 引入地址 being -->
<script src="/bbnutzwk/assets/plugins/distpicker/distpicker.js"></script>
<!-- 引入地址 end -->
<!-- 引入统计 being -->
<script src="/bbnutzwk/assets/plugins/echarts/echarts.js"></script>
<script src="/bbnutzwk/assets/plugins/echarts/echarts.min.js"></script>
<!-- 引入统计 end -->
<!-- 引入上传组件 being -->
<script src="/bbnutzwk/assets/plugins/webuploader/webuploader.js"></script>
<!-- 引入上传组件 end -->
<script src="/bbnutzwk/assets/js/form.js"></script>
<script src="/bbnutzwk/assets/js/offscreen.js"></script>
<script src="/bbnutzwk/assets/js/main.js"></script>
<script src="/bbnutzwk/assets/js/page.js"></script>
<script src="/bbnutzwk/assets/js/date.js"></script>

<script type="text/javascript">
    function bindLeft(){
        $('.main-navigation a[data-pjax]').on('click',function(){
            $('.main-navigation a[data-pjax]').each(function(){
                $(this).parent().removeClass('active');
            });
            $(this).parent().addClass('active');
        });
    }
    $(document).ready(function () {

        if($.support.pjax) {
            bindLeft();
            $('#topnav a[data-pjax]').on('click',function(){
                $.get("/bbnutzwk/platform/home/left?url="+$(this).attr("href"),function (data) {
                    $("#leftnav").html(data);
                    bindLeft();
                }, "html");
            });
            $.get("/bbnutzwk/platform/home/path?url="+window.location.href,function (data) {
                $("#leftnav").html(data);
                bindLeft();
            }, "html");
        }

        try {
            $(".gallery-loader").fadeOut();
        } catch (e) {
        }
        $('#homeDetail').on('hidden.bs.modal',function(){
            $(this).removeData("bs.modal");
        });
        $(".toggle-sidebar").click(function(){
            $(".o_img").toggleClass("o_hide");
        });
    });
</script>
<!--script-->
</body>
</html>

4 回复

views/layouts/platform.html

我这个是单独的html引用,只在一个页面上用到

加在单页的上面,然后setTimeout

添加回复
请先登陆
回到顶部