【发布时间】:2015-09-21 02:42:19
【问题描述】:
这是我的脚本:
<script>
$(function() {
t1 = window.performance.now()
var $sortable1 = $( "#dragableElement" ).sortable({
connectWith: ".connectedSortable",
items: ".sorting-initialize",
containment: "window"
});
$sortable1.find(".ui-state-default").one("mouseenter",function(){
$(this).addClass("sorting-initialize");
$sortable1.sortable('refresh');
});
t2 = window.performance.now()
console.log(t2-t1)
});
</script>
是否可以在此脚本中更改拖动项目的样式?例如添加背景:'黄色'并改变颜色等?
【问题讨论】:
标签: javascript jquery css jquery-ui jquery-ui-sortable