如何在没有散列的情况下使用angularjs的搜索参数?
如何在没有哈希符号的情况下使用带有搜索参数的$location服务?这在AngularJS文档中称为HTML5模式。要打开它,请执行以下操作:如何在没有散列的情况下使用angularjs的搜索参数?,angularjs,Angularjs,如何在没有哈希符号的情况下使用带有搜索参数的$location服务?这在AngularJS文档中称为HTML5模式。要打开它,请执行以下操作: angular .module('myApp',[]) .config(function($locationProvider) { $locationProvider.html5Mode(true); });
angular
.module('myApp',[])
.config(function($locationProvider) {
$locationProvider.html5Mode(true);
});