摘要: JavaScript中的closest()方法用于检索最接近的祖先,或者元素的父项与选择器匹配。如果没有找到祖先,则该方法返回 null 。 此方法遍历文档树中的元素及其父元素,并继续遍历直到找到第一个节点。匹配提供的选择器字符串。 例如: var $eFrozen = $(this).closes 阅读全文
posted @ 2023-03-29 09:15 James·wang 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 1、后端 public ActionResult Form(string keyValue) { var ent = bll.GetEntity(keyValue); var data = data.Where(t => t.EnCode == "ContractType").Select(d=>n 阅读全文
posted @ 2023-03-16 09:41 James·wang 阅读(4) 评论(0) 推荐(0) 编辑
摘要: listData为序列,如下所示: var jsonSetting = new JsonSerializerSettings {NullValueHandling = NullValueHandling.Ignore}; var json = JsonConvert.SerializeObject( 阅读全文
posted @ 2023-03-13 09:19 James·wang 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 1、建立如下类: /// <summary> /// 年级 /// </summary> public class Grade { /// <summary> /// 年级名 /// </summary> public string GradeName { get; set; } /// <summ 阅读全文
posted @ 2023-03-10 15:03 James·wang 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 1、IIS 里 安装好 SSL 证书后,如何实现 在浏览器里录入 http://www.xxx.com,会自动跳转到 https://www.xxx.com 呢。 首先,下载并安装 IIS 扩展: URL重写(URL Rewrite)扩展 URL重写扩展下载地址: https://www.iis.n 阅读全文
posted @ 2023-03-07 10:26 James·wang 阅读(10) 评论(0) 推荐(0) 编辑
摘要: var arry = [ "C#", "html", "css", "js","hello" ]; var result= $.inArray("C#", arry); //如果arry数组里面存在"C#" 这个字符串则返回该字符串的数组下标,否则返回(不包含在数组中) -1 阅读全文
posted @ 2023-02-03 16:58 James·wang 阅读(4) 评论(0) 推荐(0) 编辑
摘要: using Microsoft.Win32; namespace JPGCompact { public partial class MainForm : Form { private void Test() { RegistryKey folders; folders = OpenRegistry 阅读全文
posted @ 2023-01-08 12:20 James·wang 阅读(79) 评论(0) 推荐(0) 编辑
摘要: @Html.DropDownListFor(m=>m.Recommend,new SelectList(new[]{ new { value = 0, text = "否" },new { value = 1, text = "是" } }, "value", "text", 0),new { @c 阅读全文
posted @ 2022-10-21 10:32 James·wang 阅读(37) 评论(0) 推荐(1) 编辑
摘要: System.IO.File.WriteAllText(HttpContext.Current.Server.MapPath("~") + @"ApiNlogEX.txt", ex.ToString()); 阅读全文
posted @ 2022-09-26 15:27 James·wang 阅读(114) 评论(0) 推荐(1) 编辑
摘要: 项目需求 由于项目需要将原实体服务器中的VisualSVN Server迁移至新主机中。 环境说明服务器A(迁移源服务器): 操作系统:Windows2012 R2 SE X64 SVN Server版本:VisualSVN-Server-3.3.1-x64 SVN Client版本:Tortois 阅读全文
posted @ 2022-09-20 19:55 James·wang 阅读(99) 评论(0) 推荐(0) 编辑