04 2020 档案
摘要:using System; using System.Collections.Generic; using System.Text; using System.Threading; namespace AAAAAA { class AAA { public static void Main() {
阅读全文
摘要:Hashtable ht1 = new Hashtable(); //创建一个Hashtable实例 ht1.Add("张三", "100"); //添加keyvalue键值对 ht1.Add("李四", "100"); ht1.Add("王五", "100"); ht1.Add("赵六", "20
阅读全文
摘要:C# 委托 (一)—— 委托、 泛型委托与Lambda表达式原创wnvalentin 最后发布于2018-08-19 20:46:47 阅读数 9224 收藏展开目录 1 委托的含义 2 委托声明、实例化和调用 2.1 委托的声明 2.2 委托的实例化 2.3 委托实例的调用 3 泛型委托 3.1
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using System.IO;using System.Text;namespace Demo
阅读全文
摘要:一、定义 MVC中ActionResult是Action的返回结果。ActionResult 有多个派生类,每个子类功能均不同,并不是所有的子类都需要返回视图View,有些直接返回流,有些返回字符串等。ActionResult是一个抽象类,它定义了唯一的ExecuteResult方法,参数为一个Co
阅读全文
摘要:可以将文本框设置为只读, 添加属性readonly="readonly",这样可以阻止输入时就不会跳出键盘,同时可以给文本框添加一个点击事件οnclick="openClendar()",弹出选项(如:APPCAN 日历插件),选中需要的内容之后可以将值直接赋给文本框呈现:document.getE
阅读全文
摘要:1、实体类与XML相互转换 将实体类转换成XML需要使用XmlSerializer类的Serialize方法,将实体类序列化。 把XML转换成相应的实体类,需要使用到XmlSerializer类的Deserialize方法,将XML进行反序列化。 创建XML序列化公共处理类(XmlSerialize
阅读全文
摘要:#region 判断excel表内是否有重复的体检卡卡密 //判断excel表内是否有重复的体检卡卡密-2020/3/12-update string tagCode = null; if (IsRepeatCard(strAllDeviceCode.Trim().Trim(',').Split('
阅读全文
摘要://add-wgh-2020/3/25 function addClickHandler(content,marke){ marke.addEventListener("click",function(e){ openInfo(content,e)} ); } var opts = { width
阅读全文
摘要:String[] str = {"aa","kser","bdf","ope","aa"}; String[] str2 = str.Distinct().ToArray();
阅读全文
摘要:public class Staff { public string Name { get; set; } public int Age { get; set; } public string Gender { get; set; } public string DepartmentName { g
阅读全文
摘要:/// <summary> /// 获取时间戳 /// </summary> /// <returns></returns> public static string GetTimeStamp() { TimeSpan ts = DateTime.UtcNow - new DateTime(1970
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace Elight.Infrastructure{ publi
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Net;using System.Net.NetworkInformation;using System.Net.Sockets;using Sy
阅读全文
摘要:using System;using System.Collections;using System.Collections.Generic;using System.IO;using System.Net;using System.Net.Http;using System.Net.Securit
阅读全文
摘要:using System;using System.IO;using System.Text;using System.Security.Cryptography; namespace Elight.Infrastructure{ /// <summary> /// 字符串加密解密方法扩展类。 //
阅读全文
摘要:CREATE PROCEDURE TransTest(in p1 VARCHAR(20),in p2 VARCHAR(50)) BEGIN declare err int default 0; /*如果出现sql异常,则将err设置为1后继续执行后面的操作 */ declare continue h
阅读全文
摘要:/*--名称:MYSQL版查询分页存储过程 by peace 2013-8-14--输入参数:@fields -- 要查询的字段用逗号隔开--输入参数:@tables -- 要查询的表--输入参数:@where -- 查询条件--输入参数:@orderby -- 排序字段--输出参数:@page -
阅读全文
摘要:/// <summary> /// 执行多条SQL语句,实现数据库事务。 /// </summary> /// <param name="SQLStringList">多条SQL语句</param> public static int ExecuteSqlTran(List<String> SQLS
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Demo1 { class Program {
阅读全文
摘要:function checkPhone(){ var phone = document.getElementById('phone').value; if(!(/^1(3|4|5|6|7|8|9)\d{9}$/.test(phone))){ alert("手机号码有误,请重填"); return f
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls; namespace Person
阅读全文
摘要:<!DOCTYPE html> <html> <head> 问<meta charset="UTF-8"> <title></title> <style type="text/css"> a{ width: 50px; height: 50px; background: red; } </style
阅读全文
摘要:1主页面 @{ ViewBag.Title = "Index";}<!DOCTYPE html><html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>@ViewBag.Tit
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using Syste
阅读全文
摘要:1前台页面: @{ ViewBag.Title = "echart-柱状图";}<html><head> <meta charset="utf-8"> <title></title></head><body> <!-- 为ECharts准备一个具备大小(宽高)的Dom --> <div id="ma
阅读全文
摘要:看地址栏直接显示对应内容没问题啊……正常的ajax不可能像你这样,你这明显是跳转了 1在路由配置中得默认action和控制器方法加载数据得action不能相同; 2ajax请求数据返回json必须由一个标签点击onclick事件来执行ajax得执行
阅读全文
摘要:<html><head> <meta charset="utf-8"> <title></title></head><body> <!-- 为ECharts准备一个具备大小(宽高)的Dom --> <div id="main" style="height:400px"></div> <!-- ECh
阅读全文
摘要:s_sportstep:步数 SELECT DATE_FORMAT(createtime,'%Y%m%d') days,SUM(s_sportstep) AS TotalStep FROM wd_sport GROUP BY days;
阅读全文
摘要:表1:wd_device设备表 表2:wd_heartrae心率表 HR_DID代表设备表的ID编号 D_DeviceCode:设备表的设备编号 SELECT a.id,a.D_DeviceCode,b.* FROM wd_device a LEFT JOIN (SELECT * FROM wd_h
阅读全文
摘要:6、查询所有数据 select * from Info 查所有数据 select Code,Name from Info 查特定列 7、根据条件查 select * from Info where Code='p001' 一个条件查询 select * from Info where Code='p
阅读全文
摘要:1.$(document).ready() 执行时机:等DOM树加载完毕后就能执行 编写个数:$(document).ready()可写N个 简写:$(function(){}) 2.window.onload 执行时机:等网页中所有的资源加载完毕后(包括图片、flash、音频、视频),才能执行 编
阅读全文
摘要:代码示例: document.getElementById("id").innerHTML //获取文本的内容; document.getElementById("id").value //获取文本框的内容; function getValue(){ var input=document.getEl
阅读全文
摘要:1委托就是可以把方法当作参数传递 2可以把委托看作一个类来使用; 3委托使用前需要实例化 using System;using System.Collections.Generic;using System.Linq;using System.Text; namespace ConsoleAppli
阅读全文
摘要:type是请求的类型包含了get和post url:请求的地址 data:传递的参数 dataType :数据格式,可以是html,json 返回成功之后进入到success 函数 返回失败之后进入到error函数 <script type="text/javascript"> function d
阅读全文
摘要:INSERT INTO table(column1,column2,column3 ...columnN) SELECT value1,value2,value3 ...valueN FROM dual WHERE NOT EXISTS( SELECT * FROM table WHERE valu
阅读全文