簡體   English   中英

無法使用角度ui可排序

[英]cannot use angular ui-sortable

我從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-sortable時,可以顯示列表,但是當使用ui-sortable時,不顯示列表。

我做錯什么了嗎?

實際上原因是角度版本不匹配。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM