Four ways to write jQuery's entry function

1. The first type:

$(document).ready(function(){

});

2. The second:

$(function(){

});

3. The third type:

jQuery(document).ready(function(){

});

4. The fourth type:

jQuery(function(){

});

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325971817&siteId=291194637