上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 48 下一页
摘要: 开发过程中离不开github,可是打开很慢,怎么办?解决如下: Windows10快速打开hosts文件在这个位置: C:\WINDOWS\system32\drivers\etc其它系统的hosts文件在这个位置: /etc/hosts修改后的hosts文件末尾加上了这几行: 140.82.113 阅读全文
posted @ 2021-12-24 11:25 James·wang 阅读(675) 评论(0) 推荐(0)
摘要: (1) 第一种方法: int[] ia = {1,2,3}; int id = Array.IndexOf(ia,1); // 这里的1就是你要查找的值 if(id 1) // 不存在 else // 存在 (2) 第二种方法: string[] strArr = {"a","b","c","d", 阅读全文
posted @ 2021-12-21 10:48 James·wang 阅读(921) 评论(0) 推荐(0)
摘要: IIS Express 设置HTTPS 本地调试开始IIS Express自带SSL 在项目配置文件.csproj和.csproj.user的节点配置 <IISExpressSSLPort /> <IISExpressAnonymousAuthentication /> <IISExpressWin 阅读全文
posted @ 2021-12-14 16:51 James·wang 阅读(304) 评论(0) 推荐(0)
摘要: 后台返回的数据包含\r\n 但是前端使用v-html会将其转化成空格,现今产品要求是换行实现方式有三种方法: 第一种方法:修改数据,将数据中所有的\r\n转换成 .replace(/\r\n/g,"<br/>") 第二种方法:修改css,添加样式 <p style="white-space: pre 阅读全文
posted @ 2021-10-28 10:26 James·wang 阅读(3903) 评论(0) 推荐(1)
摘要: 方法如下: <div id="abc@(i)de">code...</div> 只要在@后面添加括号即可 阅读全文
posted @ 2021-10-13 10:52 James·wang 阅读(652) 评论(0) 推荐(1)
摘要: 宽度: #flowxscroll { overflow-x: auto; display: -webkit-box; -webkit-overflow-scrolling: touch; white-space: nowrap; width: 410px; height: 42px; } 高度: # 阅读全文
posted @ 2021-10-12 10:56 James·wang 阅读(2049) 评论(0) 推荐(0)
摘要: var sbzc = HttpContext.Current.Server.MapPath("~/zhece.json"); using (StreamReader r = new StreamReader(sbzc, Encoding.Default)) { string json = r.Rea 阅读全文
posted @ 2021-09-29 11:34 James·wang 阅读(1092) 评论(0) 推荐(0)
摘要: 。 然后右键,选择如上图的提示。 往下拖动,发现在console栏里自动有个“temp1”,并且已经有了列表参数。 第三步: 我们执行copy(temp1)命令。 返回了个undefined,不用理这个,其实我们已经复制了,可以打开编辑器,然后选择ctrl+v粘贴 阅读全文
posted @ 2021-09-19 22:16 James·wang 阅读(343) 评论(0) 推荐(0)
摘要: 后台如下: [HttpPost] public ActionResult SaveForm(List<StopPostVM> list){ some code here... } 前端js这么传送参数: $.ajax({ type: "post", url: "...", data: { "list 阅读全文
posted @ 2021-09-16 20:04 James·wang 阅读(124) 评论(0) 推荐(0)
摘要: 1、遍历json对象 var obj = {id:"id",name:"name"}; $.each(obj,function(){ //此处this 指代当前遍历到的obj 的胞元素,即属性键值对 alert(this.id);//提示"id" }); var obj2 = [{id:"id1"} 阅读全文
posted @ 2021-09-16 11:04 James·wang 阅读(238) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 48 下一页