摘要: 在JavaScript中,可以使用window.location对象来获取当前页面的网址。以下是几种不同的实现方法: 方法一:使用window.location.href var url = window.location.href; console.log(url); 结果: http://loc 阅读全文
posted @ 2023-12-18 15:14 3939! 阅读(2535) 评论(0) 推荐(0)
摘要: 加法运算符(+):用于将两个或多个数值相加。例如: let num1: number = 10; let num2: number = 5; let sum: number = num1 + num2; console.log(sum); // 输出:15 减法运算符(-):用于将一个数值从另一个数 阅读全文
posted @ 2023-11-16 16:13 3939! 阅读(193) 评论(0) 推荐(0)
摘要: public string delimge(string AttachmentID, string fileUrl) { string connstrs = ""; try { connstrs = this.Request.Headers["ProjectType"].ToString(); } 阅读全文
posted @ 2023-09-14 15:24 3939! 阅读(45) 评论(0) 推荐(0)
摘要: 第一种方法:“溢出省略号”,即当文字超出一定宽度时,将其省略,并显示“...”。p { overflow: hidden; /* 将超出部分隐藏 */ text-overflow: ellipsis; /* 显示省略号 */ white-space: nowrap; /* 禁止换行 */ } 第二种 阅读全文
posted @ 2023-09-12 10:18 3939! 阅读(2453) 评论(0) 推荐(0)
摘要: DataTable dt = new DataTable(); sql.Append(" SELECT a from b "); dt = SqlHelper.GetDataTable(sql.ToString()); sql = new StringBuilder(); sql.Append(" 阅读全文
posted @ 2023-08-29 11:11 3939! 阅读(283) 评论(0) 推荐(0)
摘要: this.listDataIn = data.Result.data; const uniqueItems: Item[] = Array.from( new Set(this.listDataIn.map(item => item.MyLandID)) ).map(id => { return o 阅读全文
posted @ 2023-08-24 14:15 3939! 阅读(196) 评论(0) 推荐(0)
摘要: <img style="width: 7rem;height: 7rem;border-radius: 50%;" src="{{headPath}}" onerror="onerror=null;src='./assets/imgs/avatar.png'" > 在img标签中加上 onerror 阅读全文
posted @ 2023-08-23 09:57 3939! 阅读(20) 评论(0) 推荐(0)
摘要: <button (click)="ReportUploads($event)">上传</button> ReportUploads($event) { window.event? window.event.cancelBubble = true : $event.stopPropagation(); 阅读全文
posted @ 2023-08-18 10:00 3939! 阅读(111) 评论(0) 推荐(0)
摘要: const arr: string[] = ['pom', '皮蛋编程', '非常厉害', '太棒了']; const filteredArr: string[] = arr.filter((str: string) => { return str.includes('编程'); }); conso 阅读全文
posted @ 2023-08-09 12:51 3939! 阅读(355) 评论(0) 推荐(0)
摘要: DevTools 无法加载源映射: 无法加载http://localhost:8081/statics/css/bootstrap.min.css.map 的内容:HTTP 错误: 状态代码 404,net::ERR_HTTP_RESPONSE_CODE_FAILURE 解决办法:找到bootstr 阅读全文
posted @ 2023-07-11 10:26 3939! 阅读(448) 评论(0) 推荐(0)