angular2中去除#(HTML5 History 模式),使用hash模式
angular-cli里默认使用的是HTML5 History 模式,url类似 http://localhost:4200/task-list,URL看着比较舒服,比较美观。在路由页面刷新就会404 还有一种模式是hash模式,url类似...
angular-cli里默认使用的是HTML5 History 模式,url类似 http://localhost:4200/task-list,URL看着比较舒服,比较美观。在路由页面刷新就会404 还有一种模式是hash模式,url类似...