uoryon
V2EX  ›  问与答

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

  •  
  •   uoryon · Nov 25, 2012 · 3700 views
    This topic created in 5004 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   ·   862 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 21:32 · PVG 05:32 · LAX 14:32 · JFK 17:32
    ♥ Do have faith in what you're doing.