angularjs ng-click 方法中的this指向的$scope

文章参考 http://blog.csdn.net/amohan/article/details/39249369

$scope.addAddress = function () {
	alert(this.addAddress);
	$state.go('setting_add_address');
};

备注:

这里的this是指代当前的$scope对象

扫描二维码关注公众号,回复: 498670 查看本文章

猜你喜欢

转载自hbiao68.iteye.com/blog/2286442