今天遇到个难题就是ng-click传参问题,在网上找了好多资料,先留个笔记
rush:xhtml;">
{{item.usePoints}}
{{item.rollOutAccountName}}
{{item.createTime}}
rush:js;">
//js代码
$scope.sentOutQuery = function(sourceDetail){
var expiresDate= new Date();
expiresDate.setTime(expiresDate.getTime() + 2*1000);
$cookieStore.put("sourceDetailId",sourceDetail,{expires : expiresDate});
console.log(sourceDetail);
window.location.href='sentOutQuery.html';
}
ng-click="sentOutQuery('{{item.detailId}}')" 这样虽然在页面上debugger能看到传的参数值,但是这样事件点击无效,如下图;