Is there a spec that the id of elements should be made global variable?

前端 未结 5 2041
死守一世寂寞
死守一世寂寞 2020-11-22 05:34

If I have a

in Chrome then in javascript I can do a.stuff() (it\'s like as if a is a global variable).
5条回答
提交回复
热议问题