<!DOCTYPE html>
<html style="height: 100%;">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>ONLYOFFICE Document Server</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="http://192.168.2.9:890/web/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
var docEditor;
var options = {"document":{"fileType":"docx","key":"b9121c13ca7324c01d82e122554ee95c171501601919074","title":"PPT\u8bb2\u7a3f.docx","url":"http:\/\/222.89.239.221:890\/index.php?explorer\/share\/file&hash=43b2ZZyoDG9c7WY4bXJVGQzPkFhP11vEH__AnWtWcailOo6y0XxEchUd&name=PPT%E8%AE%B2%E7%A8%BF.docx","permissions":{"download":true,"edit":false,"print":true}},"documentType":"text","type":"desktop","editorConfig":{"callbackUrl":"","lang":"zh-CN","mode":"view","user":{"id":"1","name":"\u7cfb\u7edf\u7ba1\u7406\u5458 (yibowj)"},"customization":{"autosave":true,"chat":true,"commentAuthorOnly":true,"comments":true,"compactHeader":false,"compactToolbar":false,"help":true,"toolbarNoTabs":false,"hideRightMenu":false}},"height":"100%","width":"100%"};
options.events = {};
docEditor = new DocsAPI.DocEditor("placeholder", options);
</script>
</body>
</html>
其中的 http://192.168.2.9:8001/web/web-apps/apps/api/documents/api.js
的IP地址为局域网IP,8001为kod的端口。