js弹框显示全部内容

1 file=file.replace(/\r\n/g,"<br>"); //回车换行显示
2 file=file.replace(/\n/g,"<br>");
3 OpenWindow=window.open("", "newwin", "height=600, width=1000,top=150 ,left=220 ,scrollbars=yes, 
                                  resizable=yes, toolbar=no, menubar=no");//弹框显示在显示屏中央 4 OpenWindow.document.write(file); 5 OpenWindow.document.close();

猜你喜欢

转载自www.cnblogs.com/xiaoyue1606bj/p/11308156.html