eruda
eruda copied to clipboard
不支持ES动态导入
import('eruda').then(eruda=>{
eruda.init() //Error
})
Try this
import("https://cdn.jsdelivr.net/npm/eruda").then(_imports => eruda.init())
This is because eruda defines globally an object window.eruda
.
虚幻之物对应着冥冥之路!:《羽》
Try this
import("https://cdn.jsdelivr.net/npm/eruda").then(_imports => eruda.init())
This is because eruda defines globally an object
window.eruda
.
Thx. This approach may be feasible, but it is not a formal solution
2024留言,eruda可以支持es动态导入,使用方法如下:
import('eruda').then((eruda) => eruda.default.init());