| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Program Files (x86)/Foxit Software/Foxit PDF Reader/Start/en-US/js/ |
Upload File : |
function cutStr(str, len) {
var str_length = 0;
var str_len = 0;
str_cut = new String();
str_len = str.length;
for (var i = 0; i < str_len; i++) {
a = str.charAt(i);
str_length++;
if (escape(a).length > 4) {
str_length++;
}
str_cut = str_cut.concat(a);
if (str_length > len) {
str_cut = str_cut.concat("...");
return str_cut;
}
}
if (str_length <= len) {
return str;
}
}
function getMainVersion(version){
if(!version){
return '';
}
var versionList = version.split('.');
return versionList[0]+'.'+versionList[1]+'.'+versionList[2];
}
function isNull(data){
return (data == "" || data == undefined || data == null) ? true : false;
}
//默认采用谷歌内核访问客户端
function dispatchFun(args1,args2,args3) {
var result;
if (window.isFoxitWebview) {
result = chrome.webview.hostObjects.sync.FxWebView.DispatchFun(args1,args2,args3);
} else {
result = window.external.DispatchFun(args1,args2,args3);
}
return result;
}