Home > Web Front-end > JS Tutorial > body text

2 tips for jQuery study notes_jquery

WBOY
Release: 2016-05-16 16:19:24
Original
943 people have browsed it

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

Copy code The code is as follows:

Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!