增加导入优化导出
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user