Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
JQueryのドラッグ可能な要素を移動する別の方法はありますか?自分をスパマーだと思ってください。
.mousedown(): 、.mousemove()およびの正しいシーケンスを呼び出すだけで、それほど大したことではないはずです。.mouseup()
.mousedown()
.mousemove()
.mouseup()
公式ドキュメントにあるように(http://api.jquery.com/mousedown/):
イベントハンドラーを「マウスダウン」JavaScriptイベントにバインドするか、要素でそのイベントをトリガーします。
同じことが他の2つのjquery関数の説明にも当てはまります