angularjs获取参数方法

链接:/tab/newsview?id=58

.controller('NewsViewCtrl', ["$scope", "$location","$ionicActionSheet", "$http","$timeout","$stateParams","newssever",

var cid = $location.search().id;

posted @ 2016-11-17 16:51  小小强学习网  阅读(2361)  评论(0编辑  收藏  举报