jquery就是用JS写的,方便编程的一个方法集合。!jquery
$(document).ready(function(){ }) 表示网页加载完毕后要执行的意思 ,$(function(){ })编程
$.trim()是jQuery提供的函数,用于去掉字符串首尾的空白字符。例如:异步
$.trim(" Hello, chinaren_1123 & 浮桥! ");
//去掉先后空格后->Hello, chinaren_1123 & 浮桥函数
$.prop() $.attr()获取匹配的元素的属性值。$("#Export").prop("disabled",true);post
var post_str=$("form[name='NTP']").serialize(); 序列化表单url
$.post( url, [data], [callback], [type] ) :使用POST方式来进行异步请求spa