Native JavaScript Routing?
Wir können die URL in JavaScript aktualisieren. Wir haben die APIs pushState und replaceState
// Adds to browser history
history.pushState({}, "About Page", "/about");
// Doesn't
history.replaceState({}, "About Page", "/about");
JavaScript ist auch in der Lage, beliebige Inhalte im ... zu ersetzen.