Home >Web Front-end >JS Tutorial >jquery study notes 1_jquery
jquery basic information
jquery’s official website: www.jquery.com
jquery explanation: jquery is a javascript class library that provides a large number of javascript class libraries and APIs to facilitate javascript development.
jquery API Chinese reference manual: http://jquery-api-zh-cn.googlecode.com/svn/trunk/index.html
Submit front-end data to back-end demo:
Example picture:
Function points:
1. Use $("#UserName") to get the jquery object with the id UserName.
2. Use jquery’s get, ajax, and load methods to submit data to the background.
3. Use jquery’s removeClass and addClass methods to modify the style.
4.encodeURI(username) transcodes the string to prevent garbled characters in Chinese. Note that System.Web.HttpUtility.UrlDecode(str,encoding) must be used in the background to decode
Front-end html: