在生命周期mounted里面,写入,这就可以了
let script = document.createElement("script");
script.type = "text/javascript";
script.src = "aspx的链接";
document.getElementsByTagName("head")[0].appendChild(script);
在生命周期mounted里面,写入,这就可以了
let script = document.createElement("script");
script.type = "text/javascript";
script.src = "aspx的链接";
document.getElementsByTagName("head")[0].appendChild(script);