Home >Web Front-end >JS Tutorial >jQuery Precautions and Cause Analysis_jquery
1. In addition to a method, there must be a global method of jQuery to start. For example, if I want to call method a for ajax submission, then in any <script></script> tag of the page, add jQuery(function (){}), and this sentence must be placed globally, not inside a method block, otherwise jQuery.post() of method a will not work: