Home >Web Front-end >JS Tutorial >The difference between $('#jb51') and document.getElementById('jb51') in jquery_jquery
When I wrote a small canvas program today, I discovered that the two are different.
Use alert() directly to show what these two methods get. The code is as follows: