摘要: 使用Dataset获取SqlServer中存储过程返回的表数据是以table1、table2.....的形式显示的。 当存储过程返回的表有十几个,甚至更多的时候,如果使用table1、table2的方式就很容易搞混淆。 此时就有个想法了。能不能用具体的表名指定返回的table信息,来代替table1 阅读全文
posted @ 2022-08-25 17:00 masha2017 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 做前后分离的项目时。有时候前端的页面写完了,后端还没写好API接口。这时,我们可以使用json-server快速搭建一个测试的api接口。 GitHub上有详细的官方使用手册,GitHub地址:https://github.com/typicode/json-server 1、电脑需要安装Node. 阅读全文
posted @ 2022-01-25 01:00 masha2017 阅读(432) 评论(1) 推荐(0) 编辑
摘要: @Sql VARCHAR(200)='SELECT * FROM dbo.user WITH(NOLOCK) WHERE 1=1 ' @Sql=@Sql+' AND UserName='''+@UserId+'''' EXECUTE(@Sql) 阅读全文
posted @ 2021-11-18 14:16 masha2017 阅读(848) 评论(0) 推荐(0) 编辑
摘要: 有时候想看一下各大公司的网站都用了哪些技术,我们可以借助 Chrome插件Wappalyzer 工具来实现 1、下载地址:https://www.onlinedown.net/soft/1232195.htm 下载完成之后解压 2、使用 然后按照下载下面的操作方式进行安装。 发现crx插件安装失败了 阅读全文
posted @ 2021-10-21 17:43 masha2017 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 1、获取域名 //获取域名 private string getDomain() { string Domain = Environment.UserDomainName; SelectQuery query = new SelectQuery("Win32_ComputerSystem"); us 阅读全文
posted @ 2021-08-18 20:07 masha2017 阅读(1002) 评论(0) 推荐(1) 编辑
摘要: String[] drives = Environment.GetLogicalDrives(); 阅读全文
posted @ 2021-08-18 14:29 masha2017 阅读(132) 评论(0) 推荐(0) 编辑
摘要: System.Diagnostics.Process.Start("http://zhating.cn"); 在.NET FreamWork中,是能够正常使用的 参考:https://blog.csdn.net/weixin_43653287/article/details/91460838 但是! 阅读全文
posted @ 2021-08-11 21:43 masha2017 阅读(475) 评论(0) 推荐(1) 编辑
摘要: 使用layui上传文件 前端: <div class="layui-upload"> <label class="layui-form-label" style="width:110px;">批量导入:</label> <button type="button" class="layui-btn l 阅读全文
posted @ 2021-07-29 14:12 masha2017 阅读(1480) 评论(0) 推荐(0) 编辑
摘要: with tmpTable as ( -- 1、根节点 select * from tableName where parentId = 'xxx' union all -- 2、递归条件 select a.* from tableName a inner join tmpTable b on a. 阅读全文
posted @ 2021-07-29 14:04 masha2017 阅读(1182) 评论(0) 推荐(0) 编辑
摘要: public ActionResult Index() { Run(); return View(); } public async static Task Run() { // 1.创建scheduler的引用 ISchedulerFactory schedFact = new StdSchedu 阅读全文
posted @ 2021-07-19 17:24 masha2017 阅读(188) 评论(0) 推荐(0) 编辑