码迷,mamicode.com
首页 > 编程语言 > 详细

sortable.js 华丽丽的排序

时间:2015-09-23 19:13:00      阅读:185      评论:0      收藏:0      [点我收藏+]

标签:

首先导入这几个资源

<link href="/css/jquery-ui-1.10.3.custom.css" rel="stylesheet" type="text/css" />

<script src="/js/jquery-1.7.2.min.js" type="text/javascript"></script>

<script src="/js/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>

页面加载时执行

    $("#sortable").sortable({
        opacity:0.8,
        revert:true,
        forceHelperSize:true,
        placeholder: ‘draggable-placeholder‘,
        forcePlaceholderSize:true,
        tolerance:‘pointer‘,
        stop: function( event, ui ) {
            //just for Chrome!!!! so that dropdowns on items don‘t appear below other items after being moved
            $(ui.item).css(‘z-index‘, ‘auto‘);
            $.post(
                "/scheme/sortPointMenu",
                {
                    keyList :$("#sortable").sortable(‘serialize‘),
                    stageId:lvId
                },
                function(response){  
                } 
            );
        }
    });

 

sortable.js 华丽丽的排序

标签:

原文地址:http://www.cnblogs.com/itliucheng/p/4832937.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!