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

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

WBOY
WBOYOriginal
2016-05-16 18:04:341113browse

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