摘要: /**数字验证 */ export function checkNumber(rule, value, callback) { if (value == '' || value == undefined || value == null) { callback(); } else if (!Numb 阅读全文
posted @ 2021-06-16 11:03 小七要走 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 1、开启Arcgis server 打印图片的功能 2、配置相关代理 配置代理的原因是因为arcgis server 默认请求是get 但是打印的时候传的数据超出get 请求的限制 。 2.1config配置 2.2 一般处理程序 ashx 文件配置 阅读全文
posted @ 2021-06-16 10:57 小七要走 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 1、条件渲染 arcgis api for js 提供了多种渲染方式 根据需求自行设置 下面分别为4.x 和3.x 提供的方式 2、FindTask 使用注意事项 在使用FindTask时 查询出的数据中 geometry为空 原因:参数FindParameters 的returnGeometry默 阅读全文
posted @ 2021-04-13 09:39 小七要走 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 1、代码 using System; using System.Collections.Generic; namespace ToolClass { class Program { static void Main(string[] args) { List<Point> polygonData = 阅读全文
posted @ 2021-03-31 23:16 小七要走 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 1、乱码原因 Linux 下MySQL 的表默认字符集为latin1 导致中文乱嘛 2、解决过程 2.1、停mysql服务 service mysql stop 2.2、修改配置文件 文件路径 /etc/my.cnf 打开文件 vi /etc/my.cnf mysqld 加下面一行字符串 保存 退出 阅读全文
posted @ 2021-03-11 21:47 小七要走 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 1、代码 using System; using System.Collections.Generic; using System.IO; using Word = Microsoft.Office.Interop.Word;//nuget 直接搜 namespace ConsoleApp3 { c 阅读全文
posted @ 2021-03-11 14:04 小七要走 阅读(354) 评论(0) 推荐(0) 编辑
摘要: 1.数组去重 function dedupe(array) { return Array.from(new Set(array)); } let arr = [3, 5, 2, 2, 5, 5]; let unique = [...new Set(arr)]; 2.获取url参数 function 阅读全文
posted @ 2021-03-03 09:23 小七要走 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 1.问题描述 老项目突然跑不起来了,浏览器报 jquery 404,在访问路径放了对应的jquery.js 。给自己挖的坑就此埋下。 2.jQuery 注意事项之一 在使用依赖于jQuery的js包时 不能多次引用jQuery 因为再次引用 会导致 之前在jQuery 对象上注册的方法无法使用。 3 阅读全文
posted @ 2021-02-24 16:57 小七要走 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 1、官网地址 https://docs.microsoft.com/zh-cn/ef/core/cli/powershell#scaffold-dbcontext 2.命令说明 Scaffold-DbContext 为 DbContext 数据库的和实体类型生成代码。 为了使 Scaffold-Db 阅读全文
posted @ 2021-01-16 10:44 小七要走 阅读(5445) 评论(0) 推荐(1) 编辑
摘要: public Dictionary<DateTime, TimeRange> GetDateTimeRanges(DateTime startTime, DateTime endTime, int type) { Dictionary<DateTime, TimeRange> timeDic = n 阅读全文
posted @ 2021-01-14 16:51 小七要走 阅读(684) 评论(1) 推荐(0) 编辑