改改
//window.location.protocol(设置或获取URL的协议部分)
var protocol = window.location.protocol;
//window.location.host(设置或获取URL的主机部分)
var host = window.location.host;
var serverURL_new=protocol+"//"+host;
console.log(serverURL_new)
FR.doHyperlinkByGet({
url:serverURL_new+servletURL+ "?viewlet=XXX/XXXXXX/XXXXX/12345.cpt" +"&__pi__=false"+"&p_id="+id,
title: "12345",
target: "_blank_fs"
})