增加导入优化导出

This commit is contained in:
龙运模
2024-07-15 17:24:45 +08:00
parent bb6c776515
commit 6dd9d35ce3
10 changed files with 258 additions and 73 deletions
+2 -2
View File
@@ -249,8 +249,8 @@ const http = {
*/
jsonp: function (url, name = 'jsonp') {
return new Promise((resolve) => {
var script = document.createElement('script')
var _id = `jsonp${Math.ceil(Math.random() * 1000000)}`
const script = document.createElement('script');
const _id = `jsonp${Math.ceil(Math.random() * 1000000)}`;
script.id = _id
script.type = 'text/javascript'
script.src = url