一张图保存一下
红点是当前地址
白色箭头是新打开页面
黑色箭头是后退页面
栈的思想 , 后退就是栈的索引往下移动 , 前进就是往上移动 , 点击新页面就是当前索引位置往上的所有元素都删除 , 然后再插入新页面