09 2017 档案

json转datatable
摘要:public static DataTable JsonToDataTable(string strJson) { DataTable tb = null; //获取数据 Regex rg = new Regex(@"(?<={)[^}]+(?=})"); MatchCollection mc = 阅读全文

posted @ 2017-09-30 16:49 A欣

layui之ajax巨坑
摘要:在使用layui做前端框架的时候,在请求ajax时,回调函数不执行问题,找了各种原因,各种的更改ajax参数类型和webapi返回类型 各种不行,最后发现layui默认是form提交,想要让他执行ajax回调就只是一句话 return false 看代码 layui.use(['form', 'la 阅读全文

posted @ 2017-09-30 16:45 A欣

webapi ajax 跨域
摘要:一.使用Nuget搜索“microsoft.aspnet.webapi.cors二.jQuery.support.cors = true;三.指定域名 [EnableCors(origins: "http://localhost:8081/", headers: "*", methods: "GET 阅读全文

posted @ 2017-09-25 17:07 A欣

asp.net登录票据验证
摘要:* 1.设置<authentication mode="Forms"/> * 2.票据数据保存在cookie中,Logout就一直处于登录状态。 using System;using System.Collections.Generic;using System.Text;using System. 阅读全文

posted @ 2017-09-25 11:08 A欣

导航