Created
October 2, 2013 01:40
-
-
Save xyqfer/6787900 to your computer and use it in GitHub Desktop.
检测 drag and drop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tests['draganddrop'] = function() { | |
var div = document.createElement('div'); | |
return ('draggable' in div) || ('ondragstart' in div && 'ondrop' in div); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment