请问 setCapture() 和 releaseCapture()是什么作用?

lfecnu 2004-10-08 10:14:28
如题!
...全文
188 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
tpf9000 2004-10-09
  • 打赏
  • 举报
回复
支持
孟子E章 2004-10-09
  • 打赏
  • 举报
回复
解释和例子
http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/setcapture.asp

http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/releasecapture.asp

http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/dhtml_reference_entry.asp
cybernaute 2004-10-08
  • 打赏
  • 举报
回复
setCapture Method:
Sets the mouse capture to the object belonging to the current document.

releaseCapture Method:
Releases mouse capture from an object belonging to the current document.
风斧 2004-10-08
  • 打赏
  • 举报
回复
同意楼上,好像vc里面也有类似的用法。有些画线的程序就要这样用。
DeltaCat 2004-10-08
  • 打赏
  • 举报
回复
setCapture() 获得鼠标拖动

releaseCapture() 鼠标释放

87,996

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧