When calling print , Encounters an error , Who can analyze it
var officeTransIframeDom=_getOfficeIframe();
document.getElementsByTagName("iframe")[0];
var wpsTransType = isWpsTrans();
if(wpsTransType){ popupContentWin(content,dataFormat,createDate,userId,ext,title,isForm).then(function () { var interval = setInterval(function () { ocxPrint = true; OfficeAPI.officePrint(); clearInterval(interval); },500); }) return 0;}

What's wrong ,then Is the method encapsulated by yourself .
Only Promise Objects can only be used then
Create a Promise Examples of objects are as follows
const promise = new Promise(function(resolve, reject) { if (){ resolve(value); } else { reject(error); }});
Examples of use
promise.then(function(value) { }, function(error) { });
popupContentWin(content,dataFormat,createDate,userId,ext,title,isForm)
Print the returned data
popupContentWin(content,dataFormat,createDate,userId,ext,title,isForm) What is returned