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.
我无法使此答案中提供的代码起作用:(
window.on.popState.add((_) => showPage());
Breaking on exception: Class 'Events' has no instance getter 'popState'.
任何帮助将不胜感激!
你必须使用:
window.onPopState.listen((_) => showPage());