____利用C#特性Attribute完成对sql语句的拼接
摘要://定义 特性类: public class MyAttribute : Attribute//自定义注解类判断是否是主键 { public bool PrimaryKey = false; public string Type = null; } //完成个实体类: public class St
阅读全文
___Jquery多选框的取值及反显数据
摘要:Jquery操作 var arr = new Array(); $("input:checkbox[name='checkbox']:checked").each(function (i) { arr[i] = $(this).val(); }); var vals = arr.join(",");
阅读全文
___Json帮助类
摘要:using Newtonsoft.Json;using Newtonsoft.Json.Converters;using Newtonsoft.Json.Linq;using System.Collections.Generic;using System.Data; namespace LeaRun
阅读全文
___正则验证帮助类
摘要:using System.Collections.Generic;using System.IO;using System.Net;using System.Text;using System.Web;using System;using System.Text.RegularExpressions
阅读全文
___树形菜单Ztree.js显示.
摘要:视图@{ Layout = null;} <!DOCTYPE html><HTML><HEAD> <TITLE> ZTREE DEMO - beforeEditName / beforeRemove / onRemove / beforeRename / onRename</TITLE> <meta
阅读全文
___简单的MVC单个图片上传预览
摘要:js: $("#btnImg").click(function () { $("#form0").ajaxSubmit({ url: "/Student/Img", type: "post", success: Math, }) return false; }) function Math(data
阅读全文
___枚举帮助类及_如何使用
摘要:帮助类 using System;using System.Collections.Generic;using System.ComponentModel;using System.Linq;using System.Web; namespace WebApplication5{ public cl
阅读全文
___Html页面使用Ajax做数据显示
摘要:<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title>
阅读全文
__枚举帮助类
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Linq;using System.Web; namespace WebApplication5{ public class
阅读全文
__EF批量删除
摘要:控制器: [HttpPost] public int Delete_All(string Id) { List<int> IDS = new List<int>();//创建list<int> 保存选中信息的Id 简化操作 var Ls = Id.Split(',');//根据(',') 完成对数据
阅读全文
---单选框取值
摘要:<input id="StuSex" type="radio" name="StuSex" value="true" checked="checked" /> 是<input id="StuSex" type="radio" name="StuSex" value="false" /> 否 $('i
阅读全文