Home >Web Front-end >JS Tutorial >JS advanced drag technology setCapture, releaseCapture_javascript skills

JS advanced drag technology setCapture, releaseCapture_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:04:101117browse
Copy code The code is as follows:


drag me


setCapture means to set the range, or scope, in which an object's method is triggered.
If not set, the div will only be triggered within the current window. If set, it will be triggered within the entire browser, that is, it can be dragged outside the browser.
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn