Angularjs页面a链接点击不刷新页面的问题

分类:Javascript| 发布:佚名| 查看: | 发表时间:2014/8/29

如题,解决方案如下

Have you by any chance configured your $locationProvider to html5Mode? If yes this would cause your problems. You could force it to always go to the url by adding target="_self" to your tag. Give it a shot.

你已经改变配置了你的 $locationProvider(特性有:hashPrefix、html5Mode) 为 html5Mode。如果这会造成你的问题。你可能不得不经常去的URL添加目标=“_self”您的标签。给它一个机会。

I had configured to use HTML5 so adding the target="_self" to the tag fixed the problem. Still researching why this works.

我已配置为使用HTML5添加目标=“_self”标签的固定的问题。研究为何如此

 -----------------------------------------------------------------------------------------------------


365据说看到好文章不转的人,服务器容易宕机
原创文章如转载,请注明:转载自郑州网建-前端开发 http://camnpr.com/
本文链接:http://camnpr.com/javascript/angularjs-a-tag-links-not-click.html