Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道 SPFX 中是否有办法通过当前 url 获取库?让我们说“/sites/CustomerSite/Shared%20Documents/Forms/AllItems.aspx”
下面的代码由@pnp/sp 工作。
sp.web.getList("/sites/lee/Shared%20Documents/Forms/AllItems.aspx").get().then(data => { console.log(data); }).catch(err => { console.log(err); });