uoryon
V2EX  ›  问与答

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

  •  
  •   uoryon · Nov 25, 2012 · 3607 views
    This topic created in 4919 days ago, the information mentioned may be changed or developed.
    想知道详细一点的技术细节以及需要注意的地方。
    2 replies    1970-01-01 08:00:00 +08:00
    airyland
        1
    airyland  
       Nov 25, 2012
    如果不考虑IE的话,用HTML5 dnd API 最简单了。模拟实现的话看看这个:http://www.cnblogs.com/cloudgamer/archive/2008/11/17/Drag.html
    cutehalo
        2
    cutehalo  
       Nov 25, 2012
    jQuery ui这个其实不错
    http://jqueryui.com/draggable/
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   889 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 20:50 · PVG 04:50 · LAX 13:50 · JFK 16:50
    ♥ Do have faith in what you're doing.