MoveTo 和 MoveBy 两个方法有什么区别???

policy2008 2002-12-05 08:06:45
MoveTo 和 MoveBy 两个方法有什么区别???

还有 resizeBy and resizeTo 有什么区别????
...全文
344 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
harryyang 2002-12-05
  • 打赏
  • 举报
回复
moveTo Method:
Moves the upper-left corner of the element to the specified location for the moveable behavior
moveBy Method:
Moves the screen position of the window by the specified iX and iY offset values.
junguo 2002-12-05
  • 打赏
  • 举报
回复
moveTo 是绝对位置,就是说x,y代表着是屏幕的位置。
moveBy是相对位置,x,y代表着是移动以后距离它现在的位置。

87,955

社区成员

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

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