/*设计期功能函数*/ $(function(){ $(".d-con").sortable({ placeholder: "ui-state-highlight", cursor: "move", connectWith:".d-con", items:">.d-item" }).disableSelection(); $(".d-con,.d-item").click(function(event){ _setSelectStatus(this,event); }); }); function additem(control){ if(!$(".d-active").hasClass("d-con")){ return; } $(".d-con.d-active").append($.render(control.id,$.str2json(control.content))); $(".d-con").sortable({ placeholder: "ui-state-highlight", cursor: "move", connectWith:".d-con", items:">.d-item" }).disableSelection(); } function refresh(op){ if($(".d-active").length==0){ return; } $.refreshControl(op,$(".d-active")); }