office.js的官方版本可在此处获得:
https://appsforoffice.microsoft.com/lib/1/hosted/office.js
Run Code Online (Sandbox Code Playgroud)
它在代码中包含以下行:
window.history.replaceState = null;
window.history.pushState = null;
Run Code Online (Sandbox Code Playgroud)
这打破了我的Excel加载项中的一些历史功能(我正在使用react和react-router)
为什么office.js会使这些历史记录功能无效?我在文档中找不到任何解释.
office-js ×1