我使用的是angularjs,它会自动追加
#index.html到url
http://localhost/index.html,因此路径将类似于
http://localhost/index.html#/index.html
当我注释ng-include包装的<div ng-include="'temp.html'></div>时,url返回到localhost/index.html。
但是当我取消对<div ng-include="'temp.html'></div>的评论时,它又回到了localhost/index.html#/index.html
所以,
注意:我不使用任何路由。
发布于 2013-11-21 13:48:46
自从angularjs1.1.5添加了这个问题以来,有几个bug报告:
这个错误列表在第1.2.1版中修复,可供下载。
变更集:https://github.com/angular/angular.js/commit/d4d34aba6efbd98050235f5b264899bb788117df
https://stackoverflow.com/questions/18825474
复制相似问题