为了账号安全,请及时绑定邮箱和手机立即绑定

代码的在这里的作用

1.function $(id){  return typeof id==='string'?document.getElementsById(id):id;  }有什么作用,为什么要写在这个地方

正在回答

2 回答

function $(id){  return typeof id==='string'?document.getElementsById(id):id;  }

$  函数名。

id 参数

如果传入的id是字符串类型的。返回 document.getElementById(id)


0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

代码的在这里的作用

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信