1.react 中,在index.html中直接引入第三方js <script src="https://XXX.js"></script> 2.在组件中使用 window.xxxjsFun() 就是直接在要调用的方法前添加window即可正常使用了