在我的情况下,我使用http://vitalets.github.io/angular-xeditable/#editable-table来编辑整个表,如果表有两行或更多行并单击编辑并更新了一些值(文本值),则在点击事件上我希望得到那些更新的值在控制器中。你能给些建议么。 http://jsfiddle.net/0amredgj/3/
var app = angular.module("app", ["xeditable"]);
app.run(function(editableOptions) {
editableOptions.theme = 'bs3';
});
app.controller('Ctrl', function($scope) {
$scope.user = {
name: 'awesome user',
name2: 'awesome222 user',
name3: 'awesome user',
name4: 'awesome222 user'
};
$scope.result = function(data){
alert($scope.user.name)
alert($scope.user.name2)
alert($scope.user.name3)
alert($scope.user.name4)
}
});