AngularJS 解决1.6版本路由#转义为#!#问题
方法一:
<a href="#/page1">页面1</a> 改为 <a href="#!/page1">页面1</a>
方法二:
<script> var App = angular.module('App', []); App.config(["$locationProvider",function($locationProvider){ $locationProvider.hashPrefix(''); }]); App.controller('demoController', ['$scope', '$location', function ($scope, $location) { $scope.search = $location.url(); }]); </script>