摘要: 1、编写接口时,发现访问不到指定接口 注释掉[Authorize]特性 给方法设置访问方式,已经指定路由方法 如下 2、出现一下跨域问题 在web.config 里面配置 2、返回类型指定 接口方法返回出现 xml格式, 如: Public string A() { Return “ 返回” } 调 阅读全文
posted @ 2023-03-11 10:43 Y云Cc 阅读(102) 评论(0) 推荐(0) 编辑
摘要: NHibernate.Driver.OracleClientDriver User ID=system;Password=123;Data Source=127.0.0.1/Ycc; NHibernate.Dialect.Oracle10gDialect wcf_operati... 阅读全文
posted @ 2019-03-19 11:50 Y云Cc 阅读(887) 评论(0) 推荐(0) 编辑
摘要: 接口 阅读全文
posted @ 2017-12-25 23:10 Y云Cc 阅读(800) 评论(0) 推荐(1) 编辑
摘要: 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) 编辑