Automatic drag and drop with a click
问题 I'm looking for an automatic drag and dropper. First, when I click anywhere on the screen, get coordinates, then drag and drop an element with the ID of "ball". using jQuery OR javascript. I coded a similar script to what I want, but this script got patched when the website's client got updated. This one automatically dragged and dropped when I pressed key 1 (keycode 49), (function () { 'use strict'; var mouseX = 0; var mouseY = 0; var invName = ''; var timer = 0; document.body