我相信您可能会更具体地说明脚本加载后应该做什么。这样的事情应该很适合您:
componentDidMount() { var ascript = document.createElement('script'); ascript.type = 'text/javascript'; ascript.src = " "; document.head.appendChild(ascript); ascript.onload = function() { document.getElementById(" ").InnerHTML = ; };}


