angularJS页面传参的数据获取

点击按钮抢购,实现页面跳转,将当前商品ID带入跳转的页面URL上

立即抢购

seckill-item.html页面的angularJ对URL上的参数的获取:
app.controller(“seckillOrderController”, function( s c o p e , scope, scope,location, seckillOrderService ) {

$scope.jump = function() {
	var param=$location.search()["goodsId"]
	 
   
} 

});

你可能感兴趣的:(笔记)