V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
uoryon
V2EX  ›  问与答

js实现拖动时,在某个元素上释放应该怎么做

  •  
  •   uoryon · 2012-11-25 09:44:07 +08:00 · 3177 次点击
    这是一个创建于 4196 天前的主题,其中的信息可能已经有所发展或是发生改变。
    想知道详细一点的技术细节以及需要注意的地方。
    2 条回复    1970-01-01 08:00:00 +08:00
    airyland
        1
    airyland  
       2012-11-25 10:12:38 +08:00
    如果不考虑IE的话,用HTML5 dnd API 最简单了。模拟实现的话看看这个:http://www.cnblogs.com/cloudgamer/archive/2008/11/17/Drag.html
    cutehalo
        2
    cutehalo  
       2012-11-25 10:45:19 +08:00
    jQuery ui这个其实不错
    http://jqueryui.com/draggable/
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5429 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 01:47 · PVG 09:47 · LAX 18:47 · JFK 21:47
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.