关于this指针的问题

shuibinlang 2004-05-08 02:44:52
function thispoint()
{
if(this == window)
alert('在意料之中');

if(this === window)
alert('也在意料之中');

if(this == document)
alert('疑惑???');

if(this === document)
alert('在意料之中');
}

thispoint();

-------------------------------------
请教各位高手问题何在?
...全文
48 回复 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

87,997

社区成员

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

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