问题描述
在使用ng-route时,要去掉“#”可以使用 <base href='https://www.6hehe.com/'>,$locationProvider.html5Mode(true);那么对应ui-route中,要去掉“#”,该怎么做呢?
问题解答
回答1:不用 href 而用 ui-sref 直接写状态, 而不用路径呢?
问题描述
在使用ng-route时,要去掉“#”可以使用 <base href='https://www.6hehe.com/'>,$locationProvider.html5Mode(true);那么对应ui-route中,要去掉“#”,该怎么做呢?
问题解答
回答1:不用 href 而用 ui-sref 直接写状态, 而不用路径呢?
相关文章:
网公网安备:皖ICP备2020019022号-8 Copyright ¢ 2020-2025 Powered by V1.8 All Rights Reserved 技术支持:乐呵呵网
声明:本站所有资源以学习为主