javascript - how to make multiple draggable clones?
问题 now I'm trying to make a simple drag and drop game. The first time I drag and drop a clone works fine, but it doesn't allow me to drag a clone anymore. So I want to create as many clones as I drag.... and I have no idea how to do it. Please take a look at my code first. function init(){ var xCoordinate; var yCoordinate; var itemName; $('#burger, #chicken, #fries, #hotdog, #soda').draggable({ containment: '#screen', start: getPosition, helper: 'clone', stop: dragStop, revert: 'invalid' }); $('