我正在學習AngularJS,有一件事讓我很惱火。我用$routeProvider要聲明我的應用程序的路由規則:$routeProvider.when('/test', {
controller: TestCtrl,
templateUrl: 'views/test.html'}).otherwise({ redirectTo: '/test' });但是當我在瀏覽器中導航到我的應用程序時,我看到app/#/test而不是app/test.所以我的問題是為什么AngularJS會添加這個哈希#去URL?有可能避免嗎?沒有散列“#”的AngularJS路由
沒有散列“#”的AngularJS路由
嗶嗶one
2019-06-18 10:50:50