angular路由操作中'#'字符的解决办法
生活随笔
收集整理的這篇文章主要介紹了
angular路由操作中'#'字符的解决办法
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
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
總結
以上是生活随笔為你收集整理的angular路由操作中'#'字符的解决办法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 广发犀利卡年费多少?可以免年费吗?
- 下一篇: Unity 读取资源(图片)