MVC-JS打印

<script src="../../Content/scripts/plugins/jqueryPrint/jquery.print.js"></script>

<script type="text/javascript">


    function doPrint() {
       
        window.print();
    }


    function printit() {
        $("#divManmade").print({ iframe: true, prepend: '<br/>' });
    }
</script>

<button type="button" onclick="printit()" style="width:60px;height:22px;">打印</button>  

<div id="divManmade" class="container-fluid table-responsive">

打印内容

</div>

猜你喜欢

转载自blog.csdn.net/qq_40305341/article/details/80537225