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.
我希望能够在页面加载后检查 sIFR 是否已激活,以便我可以进行其他调整 - 有点像设置 () 替代行为
由于 sIFR 已经在检查 flash 的存在,是否有一个简单的全局标志我可以参考,或者我应该只查询 DOM 以查看是否添加了 sIFR 替换的类?
如果您可以仅在标志上进行测试,那将更加优雅;-)
使用 sIFR 3,您可以检查sIFR.isActive.
sIFR.isActive