1. 防止链接打开 URL:
$("a").click(function(event){
event.preventDefault();
})
2.post 请求的结果转化为 json
var res = $.parseJSON(res);
3.把一个字符串分割成字符串数组。
stringObject.split(separator,howmany);
4.数组中的所有元素放入一个字符串
arrayObject.join(seprator);
5.判断是否是选择并且被选中
6.把 Number 四舍五入为指定小数位数的数字
toFixed()
7.$("input[type='checkbox']").prop("checked", true); //选中复选框