For example, there are currently 10 historical records, that is
window.history.length; // 10
How to delete these historical records
History is generally stored locally on the client, so js should not be able to clear it; You can only start with other ideas, depending on the needs of the subject.
It doesn’t seem to work, you can try other methods to achieve the effect you want
window.history cannot be cleared
History is generally stored locally on the client, so js should not be able to clear it;
You can only start with other ideas, depending on the needs of the subject.
It doesn’t seem to work, you can try other methods to achieve the effect you want
window.history cannot be cleared