| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <!DOCTYPE html>
- <html xmlns:th="http://www.thymeleaf.org">
- <head>
- <meta charset="UTF-8"/>
- <title>Title</title>
- <!-- office插件js begin 必须引入-->
- <script type="text/javascript" th:src="${jqSrc}"></script>
- <script type="text/javascript" th:src="${poSrc}" id="po_js_main" ></script>
- <!-- end -->
- <script th:inline="javascript">
- function requestWord(){
- var nginxPath = [[${nginxPath}]]
- var rgstrId = [[${rgstrId}]];
- var type = [[${type}]];
- var persId = [[${persId}]];
- var pblmId = [[${pblmId}]];
- POBrowser.openWindowModeless(nginxPath + '/pageoffice/pblmlist/word/'+type+'/'+rgstrId+'?persId='+persId+'.'+pblmId,'width=1100px;height=800px;');
- }
- // $(document).ready(function(){
- // document.getElementById("re").click();
- // });
- // window.onload=function (ev) {
- // document.getElementById("re").click();
- // }
- setTimeout(function(){
- // alert("Hello");
- document.getElementById("re").click();
- }, 1000);
- </script>
- </head>
- <body>
- <a id="re" href="javascript:void(0)" onclick="requestWord()">打开文档</a>
- </body>
- </html>
|