vue的寫(xiě)法:
$router.push('name');
$router.push( {path:'name'} );
$router.push({ path:' name ? a=123'? })或者$router.push({ path:' name ' ,query:{a=123 }? })或者
$router.go(1)
react的寫(xiě)法:
this.$router.push('/home ');
angular的寫(xiě)法:
import {Router} from "@angular/router";
? constructor(public router: Router) {
? ? // 相當(dāng)于window.location.href畴蒲,界面跳轉(zhuǎn)
? ? ? ? router.navigateByUrl('home');
}