问题是当您使用[] {}之类的特殊字符时,会将网址编码为默认值 我想知道如何阻止浏览器对地址进行编码,如下地址:
http://www.hepsiburada.com/troy-bosch-chef/elektrikli-alet-el-aletleri-c-13003080?puan=3&filtre=[ {" ID":" activemerchants""值":[" hepsiburada"]}]
UPDATE1:
这是我的路由器:
$stateProvider.state("products", {
url: "/:firstparams/:secondparams?filters&sort",
params: {secondparams: {squash: true, value: null}},
views: {
main: {templateUrl: "/view/productList.html", controller: "ProductListController", reloadOnSearch: false},
reloadOnSearch: false
},
reloadOnSearch: false,
onEnter: ("$rootScope", "$stateParams", "EVENTS", function ($rootScope, $stateParams, EVENTS)
{
$rootScope.$broadcast(EVENTS.ON_STATE_CHANGED, $stateParams);
})
});
});