jQuery
2016-06-07 本文已影响20人
一条自由自在的鱼
$(selector).action()
美元符号定义jQuery
选择器查找HTML元素
action()执行对元素的操作
example:
$(this).hide()
$("p").hide()
jQuery ajax post()方法:
jQuery.post(*url*,*data*,*success(data, textStatus, jqXHR)*,*dataType*)

该函数是简写的 Ajax 函数,等价于:
$.ajax({
type: 'POST',
url: *url*,
data: *data*,
success: *success*,
dataType: *dataType*
});