获得徽章 0
react hooks 想在页面加载时候执行函数,,
用了 useEffect(()=>{},[]) 但卸载也执行!!!
hooks里面如何只模拟 compontentDidMount ??
13