在我的例子中,我使用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)
}
});发布于 2015-09-02 11:37:16
试试这个小提琴:
<input ... e-name="username">fiddle
https://stackoverflow.com/questions/32344036
复制相似问题