#region DataTable转Json
        /// <summary>
        /// 将DataTable中的数据转换为JSON字符串,只返回[{...},{...},{...}...]的数据,没有表名
        /// </summary>
        /// <param name="dt">要转JSON的DataTable</param>
        /// <returns></returns>
        public static String ToJson(DataTable dt)
        {
            if (dt != null && dt.Rows.Count > 0 && dt.Columns.Count > 0)
            {
                StringBuilder _sbRow = new StringBuilder();
                StringBuilder _sbCol = new StringBuilder();
                foreach (DataRow dr in dt.Rows)
                {
                    if (_sbRow.Length > 0)
                        _sbRow.Append(",");
                    _sbRow.Append("{");
                    foreach (DataColumn dc in dt.Columns)
                    {
                        if (_sbCol.Length > 0)
                            _sbCol.Append(",");
                        _sbCol.Append("\"" + dc.ColumnName + "\":\"" + dr[dc].ToString() + "\"");
                    }
                    _sbRow.Append(_sbCol);
                    _sbRow.Append("}");
                    _sbCol.Length = 0;//将列清空
                }
                return "[" + _sbRow + "]";
            }
            return "[]";
        }
        #endregion

#region list<>转Json
public static string ListToJson<T>(IList<T> list, string jsonName)
        {
            StringBuilder Json = new StringBuilder();
            if (string.IsNullOrEmpty(jsonName))
                jsonName = list[0].GetType().Name;
            Json.Append("{\"" + jsonName + "\":[");
            if (list.Count > 0)
            {
                for (int i = 0; i < list.Count; i++)
                {
                    T obj = Activator.CreateInstance<T>();
                    PropertyInfo[] pi = obj.GetType().GetProperties();
                    Json.Append("{");
                    for (int j = 0; j < pi.Length; j++)
                    {
                        Type type = pi[j].GetValue(list[i], null).GetType();
                        Json.Append("\"" + pi[j].Name.ToString() + "\":" + "\""+String.Format(pi[j].GetValue(list[i], null).ToString()+"\"", type));

if (j < pi.Length - 1)
                        {
                            Json.Append(",");
                        }
                    }
                    Json.Append("}");
                    if (i < list.Count - 1)
                    {
                        Json.Append(",");
                    }
                }
            }
            Json.Append("]}");
            return Json.ToString();
        }
#endregion

$.ajax格式
$.ajax({
     type: "post",
     url: "restTestPage.aspx/sayHi",
     contentType: "application/json; charset=utf-8",
     dataType: "json",
     data: "{'bookName':'" + bookName + "','nowPage':'" + nowPage + "'}",
     success: function (data) {
     alert(data.d);
     //var json = $.parseJSON(data.d);
     //$.each(json.jsonName, function (idx, json) {
     //    alert(json.SSH);
     //})
    },
    error: function (XMLHttpRequest, textStatus, errorThrown) {
    var err=XMLHttpRequest.status;
    if (err == '500') {
            alert(textStatus);
            alert(XMLHttpRequest.status);
            alert(XMLHttpRequest.readyState);
            alert(XMLHttpRequest.responseText);
       }
   }
});

list 转 DataTable
[csharp] view plaincopyprint?
List<info> infos = Dal.GetInfos();  
        DataTable dt = new DataTable();  
        dt.Columns.Add("cName");  
 
        foreach (var info in infos)  
        {  
            DataRow dr = dt.NewRow();  
            dr["cName"] = info.Name;  
            dt.Add(dr);  
        }

网上的:
 
[csharp] view plaincopyprint?
public static class DataTableExtensions  
{  
    /// <summary>    
 
    /// 转化一个DataTable    
 
    /// </summary>    
 
    /// <typeparam name="T"></typeparam>    
    /// <param name="list"></param>    
    /// <returns></returns>    
    public static DataTable ToDataTable<T>(this IEnumerable<T> list)  
    {  
 
        //创建属性的集合    
        List<PropertyInfo> pList = new List<PropertyInfo>();  
        //获得反射的入口    
 
        Type type = typeof(T);  
        DataTable dt = new DataTable();  
        //把所有的public属性加入到集合 并添加DataTable的列    
        Array.ForEach<PropertyInfo>(type.GetProperties(), p => { pList.Add(p); dt.Columns.Add(p.Name, p.PropertyType); });  
        foreach (var item in list)  
        {  
            //创建一个DataRow实例    
            DataRow row = dt.NewRow();  
            //给row 赋值    
            pList.ForEach(p => row[p.Name] = p.GetValue(item, null));  
            //加入到DataTable    
            dt.Rows.Add(row);  
        }  
        return dt;  
    }  
 
 
    /// <summary>    
    /// DataTable 转换为List 集合    
    /// </summary>    
    /// <typeparam name="TResult">类型</typeparam>    
    /// <param name="dt">DataTable</param>    
    /// <returns></returns>    
    public static List<T> ToList<T>(this DataTable dt) where T : class, new()  
    {  
        //创建一个属性的列表    
        List<PropertyInfo> prlist = new List<PropertyInfo>();  
        //获取TResult的类型实例  反射的入口    
 
        Type t = typeof(T);  
 
        //获得TResult 的所有的Public 属性 并找出TResult属性和DataTable的列名称相同的属性(PropertyInfo) 并加入到属性列表     
        Array.ForEach<PropertyInfo>(t.GetProperties(), p => { if (dt.Columns.IndexOf(p.Name) != -1) prlist.Add(p); });  
 
        //创建返回的集合    
 
        List<T> oblist = new List<T>();  
 
        foreach (DataRow row in dt.Rows)  
        {  
            //创建TResult的实例    
            T ob = new T();  
            //找到对应的数据  并赋值    
            prlist.ForEach(p => { if (row[p.Name] != DBNull.Value) p.SetValue(ob, row[p.Name], null); });  
            //放入到返回的集合中.    
            oblist.Add(ob);  
        }  
        return oblist;  
    }  
 
 
 
 
    /// <summary>    
    /// 将集合类转换成DataTable    
    /// </summary>    
    /// <param name="list">集合</param>    
    /// <returns></returns>    
    public static DataTable ToDataTableTow(IList list)  
    {  
        DataTable result = new DataTable();  
        if (list.Count > 0)  
        {  
            PropertyInfo[] propertys = list[0].GetType().GetProperties();  
 
            foreach (PropertyInfo pi in propertys)  
            {  
                result.Columns.Add(pi.Name, pi.PropertyType);  
            }  
            for (int i = 0; i < list.Count; i++)  
            {  
                ArrayList tempList = new ArrayList();  
                foreach (PropertyInfo pi in propertys)  
                {  
                    object obj = pi.GetValue(list[i], null);  
                    tempList.Add(obj);  
                }  
                object[] array = tempList.ToArray();  
                result.LoadDataRow(array, true);  
            }  
        }  
        return result;  
    }  
 
 
    /**/  
 
    /// <summary>    
    /// 将泛型集合类转换成DataTable    
 
    /// </summary>    
    /// <typeparam name="T">集合项类型</typeparam>    
 
    /// <param name="list">集合</param>    
    /// <returns>数据集(表)</returns>    
    public static DataTable ToDataTable<T>(IList<T> list)  
    {  
        return ToDataTable<T>(list, null);  
 
    }  
 
 
    /**/  
 
    /// <summary>    
    /// 将泛型集合类转换成DataTable    
    /// </summary>    
    /// <typeparam name="T">集合项类型</typeparam>    
    /// <param name="list">集合</param>    
    /// <param name="propertyName">需要返回的列的列名</param>    
    /// <returns>数据集(表)</returns>    
    public static DataTable ToDataTable<T>(IList<T> list, params string[] propertyName)  
    {  
        List<string> propertyNameList = new List<string>();  
        if (propertyName != null)  
            propertyNameList.AddRange(propertyName);  
        DataTable result = new DataTable();  
        if (list.Count > 0)  
        {  
            PropertyInfo[] propertys = list[0].GetType().GetProperties();  
            foreach (PropertyInfo pi in propertys)  
            {  
                if (propertyNameList.Count == 0)  
                {  
                    result.Columns.Add(pi.Name, pi.PropertyType);  
                }  
                else  
                {  
                    if (propertyNameList.Contains(pi.Name))  
                        result.Columns.Add(pi.Name, pi.PropertyType);  
                }  
            }  
 
            for (int i = 0; i < list.Count; i++)  
            {  
                ArrayList tempList = new ArrayList();  
                foreach (PropertyInfo pi in propertys)  
                {  
                    if (propertyNameList.Count == 0)  
                    {  
                        object obj = pi.GetValue(list[i], null);  
                        tempList.Add(obj);  
                    }  
                    else  
                    {  
                        if (propertyNameList.Contains(pi.Name))  
                        {  
                            object obj = pi.GetValue(list[i], null);  
                            tempList.Add(obj);  
                        }  
                    }  
                }  
                object[] array = tempList.ToArray();  
                result.LoadDataRow(array, true);  
            }  
        }  
        return result;  
    }  
}

-----------------------------------------------------------------------------------------------------

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StudentManage.aspx.cs" Inherits="N09_Chapter6.StudentManage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="jquery1.8/jquery-1.8.0.js" type="text/javascript"></script>
    <script src="jquery1.8/json2.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#btnShowAllStudents").click(function () {
                $.ajax({
                    url: "StudentWebService.asmx/GetAllStudents",
                    type: "post",
                    data: {}, //将参数对象转换为字符串
                    contentType: "application/json",
                    dataType: "json",
                    success: function (data) {
                        var students = data.d;
                        var result = "<tr><th>学号</th><th>姓名</th><th>性别</th><th>分数</th><th>年龄</th><th>操作</th></tr>";
                        for (var i = 0; i < students.length; i++) {
                            result += "<tr>";
                            result += "<td>" + students[i].StuNo + "</td>";
                            result += "<td>" + students[i].Name + "</td>";
                            result += "<td>" + students[i].Sex + "</td>";
                            result += "<td>" + students[i].Score + "</td>";
                            result += "<td>" + students[i].Age + "</td>";
                            result += "<td><a href='#' onclick='getStudentByNo(" + students[i].StuNo + ")'>修改</a>|<a href='#' onclick='deleteStudent(" + students[i].StuNo + ")'>删除</a></td>";
                            result += "</tr>";
                        }
                        $("#tb_students").html(result);
                    },
                    error: function () {
                        alert("ajax请求失败!");
                    }
                });
            });
        });
        //根据学号获取学员信息并填充到修改学员信息的表单元素中
        function getStudentByNo(stuNo) {
            $("#divOp").show();
            $("#txtStuNo").attr("readonly", true);
            $("#btnAdd").hide();
            $("#btnUpdate").show();
            //根据学号查询相应信息
            $.ajax({
                url: "StudentWebService.asmx/GetStuInfoByStuNo",
                type: "post",
                data: "{'stuNo':" + stuNo + "}",
                contentType: "application/json",
                dataType: "json",
                success: function (data) {
                    var result = data.d;
                    $("#txtStuNo").val(result.StuNo);
                    $("#txtName").val(result.Name);
                    $("[name=sex]").each(function (i, data) {
                        if (data.value == result.Sex) {
                            data.checked = true;
                            return;
                        }
                    });
                    $("#txtScore").val(result.Score);
                    $("#txtAge").val(result.Age);
                },
                error: function () {
                    alert("发送ajax请求失败!");
                }
            });

}
        //修改学员信息
        function updateStudent() {
            var stuNo = $("#txtStuNo").val();
            var stuName = $("#txtName").val();
            var stuSex = $("[name=sex]:checked").val();
            var stuScore = $("#txtScore").val();
            var stuAge = $("#txtAge").val();
            var stuInfo = { "StuNo": stuNo, "Name": stuName, "Sex": stuSex, "Score": stuScore, "Age": stuAge };
            var param = new Object();
            param.student = stuInfo;
            $.ajax({
                url: "StudentWebService.asmx/UpdateStuInfo",
                type: "post",
                data: JSON.stringify(param),
                contentType: "application/json",
                dataType: "json",
                success: function (data) {
                    if (data) {
                        alert("修改成功!");
                        $("#btnShowAllStudents").click();
                    } else {
                        alert("修改失败!");
                    }
                },
                error: function () {
                    alert("发送ajax请求失败!");
                }
            });
        }
        //根据学号删除学员信息
        function deleteStudent(stuNo) {            
            if(confirm("确定要删除吗?")){
                $.ajax({
                    url: "StudentWebService.asmx/DeleteStuInfo",
                    type: "post",
                    data: "{'stuNo':" + stuNo + "}",
                    contentType: "application/json",
                    dataType: "json",
                    success: function (data) {
                        if (data) {
                            alert("删除成功!");
                            $("#btnShowAllStudents").click();
                        } else {
                            alert("删除失败!");
                        }
                    },
                    error: function () {
                        alert("发送ajax请求失败!");
                    }
                });
            }
        }
        //显示添加学员的div
        function showAddStudentDiv() {
            $("#divOp").show();
            $("#btnAdd").show();
            $("#btnUpdate").hide();
            $("#txtStuNo").val("");
            $("#txtName").val("");
            $("[name=sex]:eq(0)").attr("checked", true);
            $("#txtScore").val("");
            $("#txtAge").val("");
        }
        //添加学员信息
        function addStudent() {
            var stuNo = $("#txtStuNo").val();
            var stuName = $("#txtName").val();
            var stuSex = $("[name=sex]:checked").val();
            var stuScore = $("#txtScore").val();
            var stuAge = $("#txtAge").val();
            var stuInfo = { "StuNo": stuNo, "Name": stuName, "Sex": stuSex, "Score": stuScore, "Age": stuAge };
            var param = new Object();
            param.student = stuInfo;
            $.ajax({
                url: "StudentWebService.asmx/AddStudent",
                type: "post",
                data: JSON.stringify(param),
                contentType: "application/json",
                dataType: "json",
                success: function (data) {
                    if (data) {
                        alert("添加成功!");
                        $("#btnShowAllStudents").click();
                    } else {
                        alert("添加失败!");
                    }
                },
                error: function () {
                    alert("发送ajax请求失败!");
                }
            });
        }
        //根据性别查询学员信息
        function selectStuInfoBySex() {
            var sex = $("#selSex").val();//获取选中的性别
            $.ajax({
                url: "StudentWebService.asmx/GetStuInfoBySex",
                type: "post",
                data: "{'sex':'" + sex + "'}",
                contentType: "application/json",
                dataType: "json",
                success: function (data) {
                    var students = data.d;
                    var result = "<tr><th>学号</th><th>姓名</th><th>性别</th><th>分数</th><th>年龄</th><th>操作</th></tr>";
                    for (var i = 0; i < students.length; i++) {
                        result += "<tr>";
                        result += "<td>" + students[i].StuNo + "</td>";
                        result += "<td>" + students[i].Name + "</td>";
                        result += "<td>" + students[i].Sex + "</td>";
                        result += "<td>" + students[i].Score + "</td>";
                        result += "<td>" + students[i].Age + "</td>";
                        result += "<td><a href='#' onclick='getStudentByNo(" + students[i].StuNo + ")'>修改</a>|<a href='#' onclick='deleteStudent(" + students[i].StuNo + ")'>删除</a></td>";
                        result += "</tr>";
                    }
                    $("#tb_students").html(result);
                },
                error: function () {
                    alert("发送ajax请求失败!");
                }
            });
        }
    </script>
</head>
<body>
    <input type="button" value="显示所有学员信息" id="btnShowAllStudents" />
    性别:
    <select id="selSex" onchange="selectStuInfoBySex()">
        <option>--请选择性别--</option>
        <option value="男">男</option>
        <option value="女">女</option>
    </select>
    <table id="tb_students" border="1">
    </table>
    <input type="button" value="添加学员信息" id="btnAddStudent" onclick="showAddStudentDiv()"/>
    <div id="divOp" style="border:1px solid gray; width:500px; height:100px;display:none">
        <form id="stuForm">
            学号:<input type="text" id="txtStuNo"/>
            姓名:<input type="text" id="txtName" /><br />
            性别:<input type="radio" name="sex" value="男" checked/>男<input type="radio" name="sex" value="女"/>女<br />
            成绩:<input type="text" id="txtScore" />
            年龄:<input  type="text" id="txtAge"/><br />
            <input type="button"  value="添加" id="btnAdd" onclick="addStudent()"/>
            <input type="button"  value="修改" id="btnUpdate" onclick="updateStudent()"/>
        </form>
    </div>
</body>
</html>
------------------------------asmx----------------------------

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;

namespace N09_Chapter6
{
    /// <summary>
    /// StudentWebService 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务,请取消对下行的注释。
    [System.Web.Script.Services.ScriptService]
    public class StudentWebService : System.Web.Services.WebService
    {
        /// <summary>
        /// 获取所有学员信息
        /// </summary>
        /// <returns></returns>
        [WebMethod]
        public List<StuInfo> GetAllStudents()
        {
            JqueryDBDataContext db = new JqueryDBDataContext();
            return db.StuInfo.ToList();
        }
        /// <summary>
        /// 添加学员信息
        /// </summary>
        /// <param name="student">学员对象</param>
        /// <returns></returns>
        [WebMethod]
        public bool AddStudent(StuInfo student)
        {
            try
            {
                JqueryDBDataContext db = new JqueryDBDataContext();
                db.StuInfo.InsertOnSubmit(student);
                db.SubmitChanges();
                return true;
            }
            catch (Exception)
            {
                return false;
            }
        }
        /// <summary>
        /// 根据学号获取学员信息
        /// </summary>
        /// <param name="stuNo">学号</param>
        /// <returns></returns>
        [WebMethod]
        public StuInfo GetStuInfoByStuNo(int stuNo)
        {
            JqueryDBDataContext db = new JqueryDBDataContext();
            return db.StuInfo.FirstOrDefault(s=>s.StuNo==stuNo);
        }
        /// <summary>
        /// 修改学员信息
        /// </summary>
        /// <param name="student">学员信息</param>
        /// <returns></returns>
        [WebMethod]
        public bool UpdateStuInfo(StuInfo student)
        {
            try
            {
                JqueryDBDataContext db = new JqueryDBDataContext();
                StuInfo stu = db.StuInfo.FirstOrDefault(s => s.StuNo == student.StuNo);
                stu.Name = student.Name;
                stu.Sex = student.Sex;
                stu.Age = student.Age;
                stu.Score = student.Score;
                db.SubmitChanges();
            }
            catch (Exception ex)
            {
                return false;
            }
            return true;
        }
        /// <summary>
        /// 删除学员信息
        /// </summary>
        /// <param name="stuNo">学号</param>
        /// <returns></returns>
        [WebMethod]
        public bool DeleteStuInfo(int stuNo)
        {
            try
            {
                JqueryDBDataContext db = new JqueryDBDataContext();
                StuInfo stu = db.StuInfo.FirstOrDefault(s => s.StuNo == stuNo);
                db.StuInfo.DeleteOnSubmit(stu);
                db.SubmitChanges();
            }
            catch (Exception  ex)
            {
                return false;
            }
            return true;
        }
        /// <summary>
        /// 根据性别获取学员信息
        /// </summary>
        /// <param name="sex"></param>
        /// <returns></returns>
        [WebMethod]
        public List<StuInfo> GetStuInfoBySex(string sex)
        {
            JqueryDBDataContext db = new JqueryDBDataContext();
            return db.StuInfo.Where(s=>s.Sex.ToString()==sex).ToList();
        }
    }
}
------------------------------------------------

a的更多相关文章

  1. A<=B的前提下全排列A使答案尽量大

    题意:http://codeforces.com/problemset/problem/915/C 举个例子:假使排好序后a字符串是123456,b是456456,按照上述方法遍历,213456 -& ...

  2. Android DevArt4:IntentFilter学习及深入~问题描述:在不指定具体action前提下,如果有两个以上的Activity,具有完全相同的intent-filter,项目同步是否会出现异常?程序运行是否会崩溃?

    概述:GitHub IntentFilter意图过滤器,三种匹配规则:action.category.data 重点:过滤规则中必须设置 '<category android:name=&quo ...

  3. call 方法在使用一个指定的this值和若干个指定的参数值的前提下调用某个函数或方法.

    call 方法在使用一个指定的this值和若干个指定的参数值的前提下调用某个函数或方法. 注意:该函数的语法与 apply() 方法的语法几乎完全相同,唯一的区别在于,apply()方法接受的是一个参 ...

  4. 如何使用python在保留原excel格式的前提下插入/修改数据

    一.需求分析: 统计的报表中需要每日查询当天数据并追加到原有的excel后面. 因为原始excel格式已经设定好,如果使用xlwt,仅仅指定设定我们要插入的单元格的格式,原始数据的格式会被初始化. 所 ...

  5. a,b,c为3个整型变量,在不引入第四个变量的前提下写一个算法实现 a=b b=c c=a?(异或解决值互换问题)

    package com.Summer_0424.cn; /** * @author Summer * a,b,c为3个整型变量,在不引入第四个变量的前提下写一个算法实现 a=b b=c c=a? */ ...

  6. a,b为2个整型变量,在不引入第三个变量的前提下写一个算法实现 a与b的值互换

    package com.Summer_0424.cn; /** * @author Summer * a,b为2个整型变量,在不引入第三个变量的前提下写一个算法实现 a与b的值互换? */ publi ...

  7. 不修改模板的前提下修改VisualState中的某些值

    原文链接:不修改模板的前提下修改VisualState中的某些值 - 超威蓝火 UWP里有一件非常令人不爽的事,大部分控件只提供了Normal状态下的Background,Foreground,Bor ...

  8. 【F12】谷歌浏览器--前台效果可以在不访问服务器的前提下直接改样式看效果是否是预期值。

    F12-前台效果可以在不访问服务器的前提下直接改样式看效果是否是预期值. 1.Element---页面所有元素,通过它可以做selenium的元素定位,删除页面元素,增加页面属性(通过增加页面属性便于 ...

  9. ISE中的Force Process Up-to-Date功能:ISE中如何在未综合实现的前提下打开ChipScope ?

    ISE中如何在未综合实现的前提下双击Analyze Design Using ChipScope打开ChipScope ? 有时,你正在ISE中调试程序,在ChipScope中看到了现象,顺手修改了程 ...

  10. bootstrap中container 类和container-fluid类的区别container类所谓的自适应也是通过margin的改变来完成,container-fluid类的百分百宽度是指在固有的15px的padding前提下宽度总是当前视口的宽度。

    container 类和container-fluid类的区别体现在是否有随视口宽度改变的margin存在. container类所谓的自适应也是通过margin的改变来完成,container-fl ...

随机推荐

  1. SQL Server获取自增列下一个Id

    IDENT_CURRENT('TableName')为当前的最大标识值,IDENT_INCR('TableName')为设置的标识值增量, 两者相加即为下一个标识值 SELECT IDENT_CURR ...

  2. 在eclipse中创建一个Maven项目

    1. 首先判断eclipse有没有自带Maven Window –> Perferences 如果有Maven,那就是自带了maven插件,如果没有,需要自行安装. 2.配置maven 2.1. ...

  3. vs2010 2013 2015+ 必备插件精选(15个)

    转 http://www.spersky.com/post/vsPlugins.html 我目前主要用的是Hide Main Page——公司配给的电脑屏幕分辨率好小,还是1366*768的,去掉头可 ...

  4. TextView无法通过setText设值

    因为setText接收的是char序列接口类型实例,假如你在传入int类型的时候一定要String.valueOf: 设值没有成功八成是你传递的为非char序列接口类型!!!!!

  5. 毕业设计 之 二 PHP学习笔记(一)

    毕业设计 之 二 PHP学习笔记(一) 作者:20135216 平台:windows10 软件:XAMPP,DreamWeaver 一.环境搭建 1.XAMPP下载安装 XAMPP是PHP.MySQL ...

  6. 浅谈Json和jsonp

    定义: JSON:是一种数据交换格式, JSONP是一种依靠开发人员的聪明才智创造出的一种非官方跨域数据交互协议 曾经看到一个有意思的例子:JSON是地下党们用来书写和交换情报的“暗号”的话, 而JS ...

  7. css3知识

    一.box-sizing 属性 规定两个并排的带边框的框 二.align-items (适用于父类容器上) 设置或检索弹性盒子元素在侧轴(纵轴)方向上的对齐方式. 值: flex-start:弹性盒子 ...

  8. Mac使用最多的软件,整理集合

    软件资源 #[PDF移除密码]Cisdem PDFPasswordRemover 3.0.0 [TNT] #Alfred_3.1.1_737 #fwmso2016vlu2.0 #iHosts #Omn ...

  9. Spring操作指南-IoC基础环境配置(基于XML)

  10. zookeeper清除事物日志

    dataDir=/data/zookeeper/data dataLogDir=/data/zookeeper/log       zk事物日志(快照)存放目录,高负荷工作的时候,会产生大量的日志,需 ...