摘要: MVC服务器端代码 public ActionResult saleChance(Chances obj) { ChancesBLL cb = new ChancesBLL(); List<Chances> list = cb.SelectAll(); list = list.Where(w=>w. 阅读全文
posted @ 2017-11-22 21:37 Y云Cc 阅读(2193) 评论(0) 推荐(0) 编辑
摘要: 客户端JS代码 JSON.stringify(对象):将对象转化为JSON格式字符串 JSON.parse(JSON格式字符串):将JSON格式字符串转化为对象 服务器端代码 Info info = new Info() {Name="小明",Age=19 }; JavaScriptSerializ 阅读全文
posted @ 2017-11-22 21:00 Y云Cc 阅读(531) 评论(0) 推荐(0) 编辑
摘要: insert into 表名 字段名 values(值列表) delete 表名 where 字段名=字段值 update 表名 set 字段名=新的字段值 where 字段名=字段值 查询单个字段select 字段名 from 表名 查询所有字段加条件select * from 表名 where 阅读全文
posted @ 2017-11-22 20:58 Y云Cc 阅读(153) 评论(0) 推荐(0) 编辑
摘要: ajax $.ajax():相对复杂,可以设置各种参数 $.post():简单版本,发送post请求,参数比较少 $.get():简单版本,发送get请求,参数比较少 $.ajax方法: $.ajax({ type: "get", //提交方式 url: "/Home/Add",//提交的url d 阅读全文
posted @ 2017-11-22 20:55 Y云Cc 阅读(876) 评论(0) 推荐(0) 编辑