angularjs 1.2和1.3controller写法不一样
发布于 9 年前 作者 yakczh 6007 次浏览 最后一次编辑是 8 年前 来自 分享

1.2 controller可以写成function OrderListCtrl($scope){ $scope.xxx=ooo;

}

1.3要这样写 ngApp.controller(“OrderListCrl”,function($scope){ $scope.xxx=ooo;

});

3 回复

不能写成全局吧。规范了

你这个写法,1.2就有了。。。o(╯□╰)o

angularjs取得数据分页,是服务端分页,还是在客户端分页?

回到顶部