0

このコードを使用して、ページに div をロードしています。これを実現するために、DIV が存在するページの URL を取得し、取得した DIV をページ内の DIV に置き換えます。

div_PrintArea_loader - 印刷ページ内の DIV div_Content - 取得されて div_PrintArea_loader に置き換えられるコンテンツ

   <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
    <script type="text/javascript">

        var value = window.location.search;  
        $(document).ready(function () {
            $("#div_PrintArea_loader").load(value.replace("?print=", "") + " #div_Content");
        }); 
    </script>  
4

0 に答える 0