var app=angular.module("myapp",["ngRoute"]);
app.controller("ctr",function($scope){
});
//angular1.6.0以上版本需要配置
app.config(["$locationProvider",function($locationProvider){
$locationProvider.hashPrefix("");
}]);
转载于:https://www.cnblogs.com/bluesky1024/p/6297315.html