摘要: 1:新建一个Net.cs类 /// <summary> /// 网络操作 /// </summary> public class Net { #region Ip(获取Ip) /// <summary> /// 获取Ip /// </summary> public static string Ip 阅读全文
posted @ 2020-04-07 14:09 大da脸 阅读(610) 评论(0) 推荐(0)
摘要: 例如枚举: public enum sys_Enum { A预约 = 0, B待约 = 1, C潜在=2 } 1:根据索引值转换枚举名称 Enum.GetName(typeof(sys_Enum), indexVal);//转换结果就是枚举的中文名称 2:根据枚举名称转换枚举索引值 (int)sys 阅读全文
posted @ 2020-03-31 15:35 大da脸 阅读(435) 评论(0) 推荐(0)
摘要: 例如如下格式json: { "resultcode": "200", "reason": "查询成功", "result": { "area": "河南省郑州市", "location": "电信" }, "error_code": 0 } 第一步:复制上面的json内容 第二部:看图!直接就会在你 阅读全文
posted @ 2020-03-28 11:41 大da脸 阅读(1025) 评论(0) 推荐(0)
摘要: 1.1 获取当前窗口索引,并关闭 var index = parent.layer.getFrameIndex(window.name); parent.layer.close(index);//关闭当前页 1.2 刷新父页面; window.parent.location.reload(); 2 阅读全文
posted @ 2020-03-16 11:15 大da脸 阅读(8760) 评论(0) 推荐(0)
摘要: /// <summary> /// 将json写入js文件 /// 用法:先获取一个集合,序列化后 执行WriteToJs /// JavaScriptSerializer js = new JavaScriptSerializer(); /// string Workers_Json = js.S 阅读全文
posted @ 2020-03-06 13:49 大da脸 阅读(2058) 评论(0) 推荐(0)
摘要: /// <summary> /// 网络操作 /// </summary> public class Net { #region Ip(获取Ip) /// <summary> /// 获取Ip /// </summary> public static string Ip { get { var re 阅读全文
posted @ 2020-02-29 16:49 大da脸 阅读(168) 评论(0) 推荐(0)
摘要: 这里以工作日志为例WorkLog 1:Infrastructure(项目文件夹)RightControl.Model(新建model类WorkLogModel)新建实体类需继承基类 WorkLogModel:Entity 2:新建service接口 新建的接口需继承IBaseService<Work 阅读全文
posted @ 2020-01-08 14:50 大da脸 阅读(393) 评论(0) 推荐(0)
摘要: 关键代码: //将内容写入js文件的方法 public static string WriteToJs(string content) { try { content = string.Format("{0},", content.Replace(",", "")); //content = Reg 阅读全文
posted @ 2019-12-28 08:46 大da脸 阅读(325) 评论(0) 推荐(0)
摘要: $(function() { var myDate = new Date; var year = myDate.getFullYear(); //获取当前年 var mon = myDate.getMonth() + 1; //获取当前月 var date = myDate.getDate(); / 阅读全文
posted @ 2019-12-16 15:31 大da脸 阅读(3179) 评论(0) 推荐(0)
摘要: 写了一个一般处理程序来做接口,由于字段Content是文本,长度可能很长,鉴于这个原因,所以不能GET请求 所以问题来了,当我改成POST请求,自己使用HttpHelper类来写了一个Demo code var result = new HttpHelper().GetHtml(new HttpItem() { URL = "http://localhost:24885/Comment.ashx" 阅读全文
posted @ 2019-12-16 08:22 大da脸 阅读(2842) 评论(0) 推荐(0)
摘要: // 降序排列函数 compare: function(property) { return function(a, b) { var value1 = a[property]; var value2 = b[property]; return value2 - value1; } } 阅读全文
posted @ 2019-11-24 11:13 大da脸 阅读(2665) 评论(0) 推荐(0)
摘要: 一般处理程序: public void ProcessRequest(HttpContext context) { string action = context.Request.Params["action"]; switch (action) { case "Test... 阅读全文
posted @ 2019-10-17 15:34 大da脸 阅读(608) 评论(0) 推荐(0)
摘要: https://www.php.cn/course/list/7.html 阅读全文
posted @ 2019-09-11 14:34 大da脸 阅读(98) 评论(0) 推荐(0)
摘要: 一、核心:$是jquery类的一个别名,$()构造一个jquery对象,jQuery 的核心功能都是通过这个函数实现的。 jQuery中的一切都基于这个函数,或者说都是在以某种方式使用这个函数。 1、 ${表达式}:根据这个表达式来查找所有匹配的元素。 eg:$("div>p"); 查找所有p元素,且这些p元素都是div的子元素. $("input:radio",document.forms[0] 阅读全文
posted @ 2019-09-10 16:32 大da脸 阅读(3050) 评论(0) 推荐(0)
摘要: 引用: 示例1: Copy 提示:点击Copy按钮,把“hello”复制到剪贴板。 html代码: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>target-input</title> <meta nam 阅读全文
posted @ 2019-08-28 09:23 大da脸 阅读(598) 评论(0) 推荐(0)
摘要: public static T Clone(T source) { if (!typeof(T).IsSerializable) { throw new ArgumentException("The type must be serializable.", "source"); ... 阅读全文
posted @ 2019-07-31 14:43 大da脸 阅读(1932) 评论(0) 推荐(0)
摘要: $(".wysiwyg-editor").on("click","img",function(){ }) 阅读全文
posted @ 2019-07-27 10:01 大da脸 阅读(426) 评论(0) 推荐(0)
摘要: 1:根据身份证号 更新 生日字段 SQL 2:根据身份证号 更新 性别字段 SQL 阅读全文
posted @ 2019-07-02 14:45 大da脸 阅读(2069) 评论(0) 推荐(0)
摘要: 本站总访问量次 | 本站访客数人 阅读全文
posted @ 2019-07-01 10:04 大da脸 阅读(566) 评论(6) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title></title> <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script> <script> 阅读全文
posted @ 2019-06-30 08:38 大da脸 阅读(4318) 评论(0) 推荐(0)
摘要: <html> <head> <script type="text/javascript" src="http://www.w3school.com.cn/jquery/jquery.js"></script> <script type="text/javascript"> function getBirthdayFromIdCard(idCard) { var birthday = ""; if( 阅读全文
posted @ 2019-06-28 16:29 大da脸 阅读(422) 评论(0) 推荐(0)
摘要: 完整Demo 阅读全文
posted @ 2019-06-28 08:20 大da脸 阅读(3550) 评论(0) 推荐(0)
摘要: var timeouttask = Task.Delay(3000); //设置超时时间 var completedTask = await Task.WhenAny(new Task(async () => { await Task.Delay(4000);//执行的方法示例这里用延迟代替 ... 阅读全文
posted @ 2019-06-25 17:18 大da脸 阅读(1125) 评论(0) 推荐(1)
摘要: $(function(){ var w=document.documentElement?document.documentElement.clientWidth:document.body.clientWidth;//先获取窗口宽度 if(w>=768){ var J_loginHeight=$(document).height()-$('.J_partfw').out... 阅读全文
posted @ 2019-06-24 10:29 大da脸 阅读(505) 评论(0) 推荐(0)
摘要: SELECT CONVERT(date, GETDATE()) --2019-04-12 SELECT CONVERT(varchar(100), GETDATE(), 23) --2019-04-12 阅读全文
posted @ 2019-04-12 15:51 大da脸 阅读(1086) 评论(0) 推荐(0)
摘要: 一、背景由于近期工作需要将人脸识别功能与选课系统结合,但是对前端知识了解的很少,只能边做边学了,因此在这边把遇到的一些坑说明一下,希望能帮助到像我一样的初学者 二、具体内容这里采用框架为MVC,如果想在页面中不通过提交表单方式与控制器交互的话,可以用ajax去调用控制器方法并传递参数以及处理返回的j 阅读全文
posted @ 2019-04-10 18:19 大da脸 阅读(10485) 评论(0) 推荐(0)
摘要: 第一种方法: 第二种方法: 阅读全文
posted @ 2019-04-08 18:24 大da脸 阅读(1678) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/DeepLies/article/details/77726823 阅读全文
posted @ 2019-03-31 09:10 大da脸 阅读(264) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-03-14 14:56 大da脸 阅读(5268) 评论(0) 推荐(1)
该文被密码保护。 阅读全文
posted @ 2019-03-05 16:59 大da脸 阅读(1) 评论(0) 推荐(0)
摘要: cefsharp截图 阅读全文
posted @ 2019-03-04 16:09 大da脸 阅读(2356) 评论(0) 推荐(0)
摘要: $(function () { function onBridgeReady() { WeixinJSBridge.call('hideOptionMenu'); } if (typeof WeixinJSBridge == "undefined") { if... 阅读全文
posted @ 2019-02-17 14:14 大da脸 阅读(2364) 评论(0) 推荐(0)
摘要: 效果: 1>HTML: 2>JS 阅读全文
posted @ 2019-02-17 11:12 大da脸 阅读(553) 评论(0) 推荐(0)
摘要: 设置cookie var cookieManager = CefSharp.Cef.GetGlobalCookieManager(); await cookieManager.SetCookieAsync("http://" + domain, new CefSharp.Cookie( { Domain = domain, Name = name, ... 阅读全文
posted @ 2019-01-12 13:46 大da脸 阅读(10191) 评论(5) 推荐(0)
摘要: 阅读全文
posted @ 2018-12-31 16:21 大da脸 阅读(969) 评论(3) 推荐(1)
摘要: 先贴运行图:亲测可用!以图为证!开始!1.创建winform程序,使用.NET 4.5.2或以上(vs2010最高支持.NET 4.0,我使用的是vs2017)。这一步容易忽略,简单的说就是将项目.net版本改为4.5.2或以上否则下面即使引用了dll也是报错的 2.在解决方案上右键->"属性"->"生成"->"目标平台",选择x86或x64,Cef暂不支持"Any CPU"。 3.下载并解... 阅读全文
posted @ 2018-12-28 09:37 大da脸 阅读(4315) 评论(0) 推荐(2)
摘要: G.browser.GetBrowser().MainFrame.ExecuteJavaScriptAsync("$(document).height()"); 阅读全文
posted @ 2018-12-26 13:28 大da脸 阅读(1050) 评论(0) 推荐(0)
摘要: document.oncontextmenu = function () { return false; }; document.onkeydown = function () { if (window.event && window.event.keyCode == 123) { event.keyCode = 0; ... 阅读全文
posted @ 2018-12-09 09:38 大da脸 阅读(297) 评论(0) 推荐(0)
摘要: function is_weixn_qq() { var ua = navigator.userAgent.toLowerCase(); if (ua.match(/MicroMessenger/i) == "micromessenger") { alert("weixin"); } else... 阅读全文
posted @ 2018-12-07 15:51 大da脸 阅读(1104) 评论(0) 推荐(0)
摘要: 功能已经实现 扫码拨号支持: 微信、手机浏览器、支付宝、手机QQ 基本上手机支持扫描的都可以通过扫码拨号 如果有需要的可以联系我QQ:306300669 也可以微信我 阅读全文
posted @ 2018-12-07 14:08 大da脸 阅读(3539) 评论(0) 推荐(0)