Home > Web Front-end > JS Tutorial > The difference between $('#jb51') and document.getElementById('jb51') in jquery_jquery

The difference between $('#jb51') and document.getElementById('jb51') in jquery_jquery

WBOY
Release: 2016-05-16 18:04:34
Original
1172 people have browsed it

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:

Copy code The code is as follows:





jb51

Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template