Looking at the code of that library, it should be an IIFE, and then the variables are exposed to the window. There is no export, so I can't import it. How can I import this file? I don't want to use script references in html.
大家讲道理2017-06-12 09:31:25
I’m afraid I have to change it myself, open IIFE, and directly export the attributes originally added to windows...
为情所困2017-06-12 09:31:25
如果没有export引js如下
import "./assest/js/autoPageFont.js";
就这样引js,这样就会执行你这样引的js