时间:2021-07-01 10:21:17 帮助过:11人阅读
这个demo展示的效果为:从上面可以拖动到下面相应的框中(原有的不能再拖动),拖动框中的东西到外面可以取消
-----------以下为HTML
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title></title> <link rel="stylesheet" type="text/css" href="css/bootstrap-3.3.5/css/bootstrap.min.css" rel="external nofollow" > <link rel="stylesheet" type="text/css" href="css/easyui.css" rel="external nofollow" > <link rel="stylesheet" type="text/css" href="css/icon.css" rel="external nofollow" > <link rel="stylesheet" href="css/demo.css" rel="external nofollow" > </head> <body> <p class="container"> <ul class="items"> <li class="category"> <i></i> <span>品类</span> </li> <li class="factory"> <i></i> <span>工厂</span> </li> <li class="with-high"> <i></i> <span>跟高</span> </li> <li class="with-type"> <i></i> <span>跟型</span> </li> <li class="price"> <i></i> <span>单价</span> </li> </ul> <p class="target"> <p class="target-cascade"> <span>级联统计指标</span> <ul> </ul> </p> <p class="target-column"> <span>列指标</span> <ul> </ul> </p> </p> </p> <script src="js/jquery.js"></script> <script src="js/jquery.easyui.min.js"></script> <script src="js/demo.js"></script> </body> </html>
-------------以下为js代码
相关推荐:
jQuery EasyUI 教程-Droppable(放置)
droppable讲解
如何使用jQuery Draggable和Droppable实现拖拽功能_jquery
以上就是easyUI的拖动操作中droppable,draggable用法实例的详细内容,更多请关注Gxl网其它相关文章!