1.怎么将页面间的参数传送会控制器:定义一个modlez在控制器上使用,当为参数为list in newlist的时候可以将list 作为参数返回控制器中;
2.页面的自动刷新可以应该用触发的时间,如短信接受时触发,也可以自动时间的触发,点击按钮的触发。其中短息接收的触发方法是:1,在要触发的页面上标注一个id。2在信息的处理页上定义刷新函数。go_to_act_detail_page_by_name_of = function (act_name) {
var page_jump_or_not = document.getElementById(act_name)
if (page_jump_or_not) {
var scope = angular.element(page_jump_or_not).scope();
scope.$apply(function () {
scope.data_refresh();
})
}
}
3在页面的控制器中添加data_refresh()在其函数体中写出要刷新的内容。
3.颜色的刷新
$timeout(function () {document.getElementById(auction_name).style.background = 'yellow'}, 10)