mirror of
https://github.com/501351981/vue-office.git
synced 2025-07-15 07:32:19 +08:00
2 lines
385 B
JavaScript
2 lines
385 B
JavaScript
function r(e){return typeof e=="string"?e:e instanceof Blob?URL.createObjectURL(e):e instanceof ArrayBuffer?URL.createObjectURL(new Blob([e])):e instanceof Response?URL.createObjectURL(e.blob()):e}function i(e){return new Promise((n,o)=>{let t=document.createElement("script");t.src=e,t.onload=function(){n()},t.onerror=function(){o()},document.body.append(t)})}export{r as g,i as l};
|