子表初始化加载json数据:
$scope.dtOptions = DTOptionsBuilder.fromFnPromise(function() { var defer = $q.defer();//创建一个deferred对象 defer.resolve($scope.form.formdata[thisName]);//执行deferred promise return defer.promise; })