next提供了在服务端运行的getInitialProps方法,我们可以在这个方法中执行接口获取页面数据。function hrefObj(url) { if (!url.includes('?
確定! 回上一頁