我从https://github.com/angular-ui/ui-sortable下载了最新的源代码。但是我不能用它。我打开了demo.html,但它坏了。
更新:在控制台中打开demo.html时的:
Navigated to https://www.google.com.au/search?q=if+demo+break+angular-ui+sortable&oq=if+…-ui+sortable&aqs=chrome..69i57.18815j0j4&sourceid=chrome&es_sm=93&ie=UTF-8
Navigated to http://stackoverflow.com/questions/24624807/angular-ui-sortable-not-working-properly
ds.serving-sys.com/BurstingCachedScripts//Ad_2_49_3_0/ebStdBannerEx.js:82 Setting 'XMLHttpRequest.withCredentials' for synchronous requests is deprecated.
Navigated to https://www.google.com.au/search?q=if+demo+break+angular-ui+sortable&oq=if+…-ui+sortable&aqs=chrome..69i57.18815j0j4&sourceid=chrome&es_sm=93&ie=UTF-8
Navigated to file:///C:/xampp/htdocs/web/plugins/ui-sortable-src0.13.4/demo/demo.html这是我包括的文件
<meta charset='utf-8'>
<script src="js/third-party/jquery-1.9.1.min.js"></script>
<script src="js/third-party/angular.min.js"></script>
<script src="js/third-party/angular-cookies.min.js"></script>
<script src="js/jquery.scrollTo.js" type="text/javascript"></script>
<script src="js/third-party/keypress.js"></script>
<script src="js/third-party/ng-upload.min.js"></script>
<script src="js/third-party/jquery-ui.min.js"></script>
<script src="js/third-party/jquery-ui-1.10.2.custom.min.js"></script>
<script src="js/third-party/ui-calendar.js"></script>
<script src="js/third-party/date.js"></script>
<script src="js/third-party/fullcalendar.min.js"></script>
<script src="js/third-party/moment.min.js"></script>
<script src="js/third-party/bootbox.min.js"></script>
<script type="text/javascript" src="plugins/ui-sortable-src0.13.4/src/sortable.js"></script>我的应用程序
angular.module('app.ReportCtrl',['ui.sortable']).controller('ReportCtrl', function($http, $rootScope, $scope)和元素
<ul ui-sortable ng-model="selectedColumns">
<li ng-repeat="col in selectedColumns">{{col.displayName}}</li>
</ul>当我不使用ui排序时,列表可以显示,但是当使用ui排序时,列表不会显示。
我做错什么了吗?
发布于 2015-07-31 04:34:59
其实原因是角版不匹配。
https://stackoverflow.com/questions/31510737
复制相似问题