<div class="codetitle"> <span><a style="CURSOR: pointer" data="83376" class="copybut" id="copybut83376" onclick="doCopy('code83376')"><u>复代码</u></a></span> 代码如下:</div> <div class="codebody" id="code83376"> <br><html> <br><머리> <br><title>안녕하세요</title> <br><meta http-equiv="content-type" content="text/html;charset=utf-8"> <br><link rel="Stylesheet" type="text/css" href="http:10.19.1.55/lib/extjs/resources/css/ext-all.css" /> <br><script type="text/javascript" src="http:10.19.1.55/lib/extjs/bootstrap.js"></script> <br><script type="text/javascript" src="http:10.19.1.55/lib/extjs/locale/ext-lang-zh_CN.js"></script> <br><style type="text/css"> <br></style> <br><script type="text/javascript"> <br>Ext.onReady(function(){ <br>var drags=document.getElementsByTagName('li'); <br>for(var i=0;i<drags.length;i ) <br>{ <br>Ext.dd.Registry.register(drags[i]); <br>} <br>new Ext.dd.DragZone('today') <br>new Ext.dd.DragZone('tmrw'); 🎜><br>함수 drop(dropNodeData,source,event,dragNodeData) <br>{ <br>var dragged=source.dragData.ddel; <br>var sourceContainer=source.el.dom <br>var desContainer= this.getEl(); <br>sourceContainer.removeChild(드래그됨); <br><br>return true; ; <br>new Ext.dd.DropZone('today',cfg) <br>new Ext.dd.DropZone('tmrw',cfg) <br></script> <br></head> <br><본문> <br><h1>오늘</h1> <br><ul id="today"> <br><li>쇼핑</li> <br><li>머리 자르기</li> <br></ul> <br><h1>내일> <br><ul id="tmrw"> <br><li>123</li> <br><li>456</li> <br></ul> <br></body> <br></html> <br><br> </div>