0
所以我有以下网址:window.history.pushState变更网址而不删除最后一部分
https://example.com/page/foo
而且我用这样的pushState的:
window.history.pushState(window.location.href, null, 'product/'+data.name+'/'+data.item);
现在的问题是,当它改变了URL,它消除“富”,因此新的URL将
https://example.com/page/product/product-name/123
,我不想这样,我想保留原来的网址...并追加新的东西