摘要: /// <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脸 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 这里以工作日志为例WorkLog 1:Infrastructure(项目文件夹)RightControl.Model(新建model类WorkLogModel)新建实体类需继承基类 WorkLogModel:Entity 2:新建service接口 新建的接口需继承IBaseService<Work 阅读全文
posted @ 2020-01-08 14:50 大da脸 阅读(343) 评论(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脸 阅读(294) 评论(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脸 阅读(3156) 评论(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脸 阅读(2709) 评论(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脸 阅读(2634) 评论(0) 推荐(0) 编辑
摘要: 一般处理程序: public void ProcessRequest(HttpContext context) { string action = context.Request.Params["action"]; switch (action) { case "Test... 阅读全文
posted @ 2019-10-17 15:34 大da脸 阅读(587) 评论(0) 推荐(0) 编辑
摘要: https://www.php.cn/course/list/7.html 阅读全文
posted @ 2019-09-11 14:34 大da脸 阅读(86) 评论(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脸 阅读(2986) 评论(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脸 阅读(573) 评论(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脸 阅读(1897) 评论(0) 推荐(0) 编辑
摘要: $(".wysiwyg-editor").on("click","img",function(){ }) 阅读全文
posted @ 2019-07-27 10:01 大da脸 阅读(408) 评论(0) 推荐(0) 编辑
摘要: 1:根据身份证号 更新 生日字段 SQL 2:根据身份证号 更新 性别字段 SQL 阅读全文
posted @ 2019-07-02 14:45 大da脸 阅读(1956) 评论(0) 推荐(0) 编辑
摘要: 本站总访问量次 | 本站访客数人 阅读全文
posted @ 2019-07-01 10:04 大da脸 阅读(525) 评论(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脸 阅读(4285) 评论(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脸 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 完整Demo 阅读全文
posted @ 2019-06-28 08:20 大da脸 阅读(3523) 评论(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脸 阅读(1046) 评论(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脸 阅读(479) 评论(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脸 阅读(1069) 评论(0) 推荐(0) 编辑
摘要: 一、背景由于近期工作需要将人脸识别功能与选课系统结合,但是对前端知识了解的很少,只能边做边学了,因此在这边把遇到的一些坑说明一下,希望能帮助到像我一样的初学者 二、具体内容这里采用框架为MVC,如果想在页面中不通过提交表单方式与控制器交互的话,可以用ajax去调用控制器方法并传递参数以及处理返回的j 阅读全文
posted @ 2019-04-10 18:19 大da脸 阅读(10392) 评论(0) 推荐(0) 编辑
摘要: 第一种方法: 第二种方法: 阅读全文
posted @ 2019-04-08 18:24 大da脸 阅读(1600) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/DeepLies/article/details/77726823 阅读全文
posted @ 2019-03-31 09:10 大da脸 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-03-14 14:56 大da脸 阅读(5244) 评论(0) 推荐(1) 编辑
该文被密码保护。 阅读全文
posted @ 2019-03-05 16:59 大da脸 阅读(1) 评论(0) 推荐(0) 编辑
摘要: cefsharp截图 阅读全文
posted @ 2019-03-04 16:09 大da脸 阅读(2277) 评论(0) 推荐(0) 编辑
摘要: $(function () { function onBridgeReady() { WeixinJSBridge.call('hideOptionMenu'); } if (typeof WeixinJSBridge == "undefined") { if... 阅读全文
posted @ 2019-02-17 14:14 大da脸 阅读(2295) 评论(0) 推荐(0) 编辑
摘要: 效果: 1>HTML: 2>JS 阅读全文
posted @ 2019-02-17 11:12 大da脸 阅读(529) 评论(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脸 阅读(9916) 评论(5) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-12-31 16:21 大da脸 阅读(928) 评论(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脸 阅读(4126) 评论(0) 推荐(2) 编辑
摘要: G.browser.GetBrowser().MainFrame.ExecuteJavaScriptAsync("$(document).height()"); 阅读全文
posted @ 2018-12-26 13:28 大da脸 阅读(1022) 评论(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脸 阅读(281) 评论(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脸 阅读(1077) 评论(0) 推荐(0) 编辑
摘要: 功能已经实现 扫码拨号支持: 微信、手机浏览器、支付宝、手机QQ 基本上手机支持扫描的都可以通过扫码拨号 如果有需要的可以联系我QQ:306300669 也可以微信我 阅读全文
posted @ 2018-12-07 14:08 大da脸 阅读(3293) 评论(0) 推荐(0) 编辑
摘要: 使用说明:https://www.xiazaiba.com/html/24864.html 下载地址:点击下载集成插件 阅读全文
posted @ 2018-12-04 16:51 大da脸 阅读(357) 评论(0) 推荐(0) 编辑
摘要: @media only screen and (min-width: 100px) and (max-width: 640px) { div { width: 100px; height: 100px; } } @media only screen and (min-... 阅读全文
posted @ 2018-11-13 15:10 大da脸 阅读(674) 评论(0) 推荐(0) 编辑
摘要: 源码下载:DemoHtml 阅读全文
posted @ 2018-11-13 08:36 大da脸 阅读(1044) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-09-28 11:35 大da脸 阅读(154) 评论(0) 推荐(0) 编辑
摘要: //调用系统默认的浏览器 System.Diagnostics.Process.Start("http://www.zhaokeli.com"); 阅读全文
posted @ 2018-09-18 10:46 大da脸 阅读(248) 评论(0) 推荐(0) 编辑