1.jQuery function prefix
In JavaScript, developers usually write some small functions to handle various operation details, such as clearing the front and end spaces of the text box when the user submits the form. There is no similar trim() function in JavaScript. After using jQuery in the Normal University, you can use the trim() function.
The trim() function is a method of jQuery object, use the following example