You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html>
|
|
|
|
|
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
</head>
|
|
|
|
|
<script type="text/javascript" src="../js/util.js"></script>
|
|
|
|
|
<script type="text/javascript" src="../js/taskpane.js"></script>
|
|
|
|
|
<script type="text/javascript" src="../.debugTemp/wpsjsrpcsdk.js"></script>
|
|
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
<div class="global">
|
|
|
|
|
<div class="divItem">
|
|
|
|
|
这是一个网页,按<span style="font-weight: bolder;">"F12"</span>可以打开调试器。
|
|
|
|
|
</div>
|
|
|
|
|
<div class="divItem">
|
|
|
|
|
这个示例展示了wps加载项的相关基础能力,与B/S业务系统的交互,请用浏览器打开:
|
|
|
|
|
<span style="font-weight: bolder;color: slateblue;cursor:pointer" id="DemoSpan"
|
|
|
|
|
onclick="shellExecuteByOAAssist(this.innerHTML)"></span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="divItem">开发文档: <span style="font-weight: bolder;color: slateblue;cursor:pointer"
|
|
|
|
|
onclick="shellExecuteByOAAssist(this.innerHTML)">https://open.wps.cn/docs/office</span></div>
|
|
|
|
|
<hr>
|
|
|
|
|
<div class="divItem">
|
|
|
|
|
<button style="margin:3px;" onclick="onbuttonclick('dockLeft')">停靠左边</button>
|
|
|
|
|
<button style="margin:3px;" onclick="onbuttonclick('dockRight')">停靠右边</button>
|
|
|
|
|
<button style="margin:3px;" onclick="onbuttonclick('hideTaskPane')">隐藏TaskPane</button>
|
|
|
|
|
<button style="margin:3px;" onclick="onbuttonclick('addString')">文档开头添加字符串</button>
|
|
|
|
|
<button style="margin:3px;" onclick="onbuttonclick('getDocName')">取文件名</button>
|
|
|
|
|
</div>
|
|
|
|
|
<hr>
|
|
|
|
|
<div class="divItem">文档文件名为:<span id="text_p"></span></div>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
.global {
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
min-height: 95%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.divItem {
|
|
|
|
|
margin-left: 5px;
|
|
|
|
|
margin-bottom: 18px;
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
word-wrap: break-word;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
</html>
|