我面臨着「#」符號的問題。我想從我的角色js網站的URL中刪除#。我試圖通過「提供的鏈接」的幫助刪除它,但它不工作,該網站不顯示任何內容。請讓我知道如何使它成爲可能。如何從URL中刪除#符號。從角度js中的url中刪除#符號
這裏是我的route.js代碼: -
var app = angular.module("myApp", ["ngRoute"]);
app.config(function($routeProvider) {
$routeProvider
.when("/", {
templateUrl: 'Templates/home.html',
})
.when("/first", {
templateUrl: 'Templates/first.html',
})
.when("/second", {
templateUrl: 'Templates/second.html',
})
.when("/third", {
templateUrl: 'Templates/third.html',
})
.when("/admin", {
templateUrl: 'Templates/admin.html',
})
.otherwise({
redirectTo: '/'
});
你試圖刪除'#'。說明。 – SaiUnique