可用office.js正式版在這裏:Office.js勾銷瀏覽器歷史記錄功能,打破歷史使用
https://appsforoffice.microsoft.com/lib/1/hosted/office.js
它包含以下幾行代碼:
window.history.replaceState = null;
window.history.pushState = null;
這打破了一些我的Excel加載項中的歷史記錄功能(我正在使用react
和react-router
)
爲什麼office.js取消這些歷史記錄功能S'我在文檔中找不到任何解釋。
讓我跟進與團隊合作 –