jQuery技术:Angular DataTables – 无法读取属性’匹配’

我正在使用jQuery和Angular Datatables。 我没有在表格中获取数据。

TypeError:无法读取Object.i中的undefined属性’match'[as render](angular-datatables.min.js:6)

这些是我安排的插件。

    

这是我在jsp文件中的表:保存在数据库中的所有实习都必须在表中查看。 jquery表是否适合与angularjs一起使用?

 
Id Title Category Status Created date Action
Id Title Category Status Created date Action
{{$index+1}} {{internship.title}} {{internship.category.name}} {{internship.status}} {{internship.appliedDate | date:'d MMMM yyyy'}}

并且数据将从后端发出。

controller.js:

 $scope.dtOptions = DTOptionsBuilder.newOptions().withPaginationType('full_numbers').withDisplayLength(10); var getInternships = function () { var data = "pageNumber=" + pageNumber + "&pageSize=" + $scope.pageSize; internshipService.getInternships(data, function (data) { if (data) { $scope.internshipsLength = data.length; } if (data && data.length > 0) { if (latestinterships.length == 0) { latestinterships = data; } else if (latestinterships.length > 0) { latestinterships = latestinterships.concat(data); } $scope.deatilInternships = []; var index = 0; for (var i = 0; i < latestinterships.length; i++) { if (!$scope.deatilInternships[index]) { $scope.deatilInternships[index] = []; } $scope.deatilInternships[index].push(latestinterships[i]); } } $rootScope.InternshipCount = data.length; }); }; getInternships(); 

app.js:我也将dependency injection’datatables’

表中没有显示任何内容。

      以上就是jQuery教程分享Angular DataTables – 无法读取属性’匹配’相关内容,想了解更多jQuery开发(异常处理)及jQuery教程关注计算机技术网(www.ctvol.com)!)。

      本文来自网络收集,不代表计算机技术网立场,如涉及侵权请联系管理员删除。

      ctvol管理联系方式QQ:251552304

      本文章地址:https://www.ctvol.com/jquerytutorial/561408.html

      (0)
      上一篇 2021年2月4日
      下一篇 2021年2月4日

      精彩推荐