我想在react应用程序中读取并打印当前URL。现在,我正在使用“ window.location.pathname”来读取URL,但想知道是否有更好的方法或某些反应方式来读取URL
javascript reactjs
javascript ×1
reactjs ×1