This commit is contained in:
jianxin committed 2024-11-01 09:03:27 +08:00
commit 5b00bd10d0
15 files changed
+524

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
//在后续的wps版本中,wps的所有枚举值都会通过wps.Enum对象来自动支持,现阶段先人工定义
var WPS_Enum = {
msoCTPDockPositionLeft: 0,
msoCTPDockPositionRight: 2
}
function GetUrlPath() {
let e = document.location.toString()
return -1 != (e = decodeURI(e)).indexOf("/") && (e = e.substring(0, e.lastIndexOf("/"))), e
}
/**
* 通过wps提供的接口执行一段脚本
* @param {*} param 需要执行的脚本
*/
function shellExecuteByOAAssist(param) {
if (wps != null) {
wps.OAAssist.ShellExecute(param)
}
}