摘要:
HTML: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>css 阅读全文
随笔 - 89
文章 - 0
评论 - 2
阅读 -
11万
摘要:
1.验证电子邮箱格式 function isEmail(value) { return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value) } 2.验证手机格式 function 阅读全文
摘要:
//解析地址public string Analysis(string address) { string regex = "(?<province>[^省]+自治区|.*?省|.*?行政区|.*?市)?(?<city>[^市]+自治州|.*?地区|.*?行政单位|.+盟|市辖区|.*?市|.*?县 阅读全文
摘要:
public string ImageToBase64(string fileFullName) { try { fileFullName = System.AppDomain.CurrentDomain.BaseDirectory.ToString() + fileFullName; Bitmap 阅读全文
摘要:
主要方法: using System.IO; using System.Drawing; using System.Drawing.Imaging; public ActionResult UploadFaceImg(string faceImg, string xfNo, string Eid) 阅读全文
摘要:
qrcode_为获取的二维码网络地址 WebClient mywebclient = new WebClient(); byte[] Bytes = mywebclient.DownloadData(qrcode_); mywebclient.Dispose();//转换为base64 string 阅读全文
摘要:
需要下载的效果图: HTML 需要引用js:html2canvas.js <div class="back" id="qrCode"> <div class="blu"> <div style="color:white;font-size:24px;text-align:center;padding 阅读全文
摘要:
在使用VS进行单步调式的时候,相加断点调试提示断点无效,断点未能绑定。 解决方式: 1、检查工具--选项--调试--仅我的代码/启用编辑和继续 启用仅我的代码取消掉 2、检查项目属性生成,取消优化代码 右键单击项目生成项,选择属性,进入生成页面 设置完成后发现一如既往的不管用,无法debug真心抓虾 阅读全文
摘要:
效果图: 原图: 点击后: HTML代码: <div> <div class="lr-form-item-title">物品图片</div> <img id="Img" src="" style="width:120px;height:120px;" /> </div> <div id="outer 阅读全文
摘要:
在代码段中添加: Thread t = new Thread((ThreadStart)(() => { //需要处理的逻辑 } )); t.SetApartmentState(ApartmentState.STA); t.Start(); t.Join(); 阅读全文