uoryon
V2EX  ›  问与答

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

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