React中使用Qunee组件,通过传入回调函数获取graph对象 Graph.jsx import {useEffect, useRef} from "../qunee_demo_3/doc/react.md"; import Q from 'https://demo.qunee.com/lib/qunee-es.js' export function Graph({onload}) { const ref = useRef(); useEffect(() => { let graph = new Q.Graph(ref.current); …
阅读更多