componentDidMount() {
const script = document.createElement("script");
script.src = "/scripts/xxx.js";
script.async = true;
document.body.appendChild(script);
}
react当前页面插入外部script
猜你喜欢
转载自blog.csdn.net/sunzhen15896/article/details/113112756
今日推荐
周排行