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.
我已经尝试使用 history.go(-1) 关闭 Photoswipe 屏幕库;但它会将我带到我的画廊所在的前一个屏幕。如何使用留在我调用我的画廊的页面中的代码关闭 Photoswipe 屏幕画廊?提前致谢。
我设法用这条线做到了:
window.Code.PhotoSwipe.activeInstances[0].instance.hide();