更新时间:2018/9/28 上午9:07:59
更新说明:更新css选择器,固定每个色块的颜色
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | // 调用$(".js_module_1").moduleSet({ button:[ {text:'编辑',callback:function(){alert('编辑')},iconfont:''}, {text:'删除',callback:function(){alert('删除')},iconfont:''}, ],})$(".js_module_2").moduleSet({ button:[ {text:'编辑',callback:function(){alert('编辑2')},iconfont:''}, {text:'美化',callback:function(){alert('美化2')},iconfont:''}, ],})$(".js_module_3").moduleSet({ button:[ {text:'编辑',callback:function(){alert('编辑3')},iconfont:''}, {text:'美化',callback:function(){alert('美化3')},iconfont:''}, ],})// 排序var container = document.getElementById("container");var sort = Sortable.create(container, { animation: 150, // ms, animation speed moving items when sorting, `0` ? without animation handle: ".module1", // Restricts sort start click/touch to the specified element draggable: ".module1", // Specifies which items inside the element should be sortable onUpdate: function (evt/**Event*/){ alert(11) var item = evt.item; // the current dragged HTMLElement }}); |
特别申明:
本站所有资源都是由网友投稿发布,或转载各大下载站,请自行检测软件的完整性!
本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!
如有侵权请联系我们删除下架,联系方式:lei1294551502@163.com