上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 46 下一页
摘要: fetch(window.location.href,{credentials:"omit",redirect:"follow",mode:"no-cors"}) .then(function(b){return b.text()}) .then(function(b){ var a=b; a=b. 阅读全文
posted @ 2020-04-14 13:36 talentzemin 阅读(143) 评论(0) 推荐(0)
摘要: 原理 下载Selenium Server(即RemoteWebDriver) https://www.selenium.dev/downloads/ 我们以3.3.1为例 启动hub 启动node hub和node使用的是同一个可执行文件,只是在启动的时候,指定-role不同。 在启动node的时候 阅读全文
posted @ 2020-04-12 13:39 talentzemin 阅读(163) 评论(0) 推荐(0)
摘要: 原理 通过官方提供的类库(包)向浏览器Driver(比如ChromeDriver、FirefoxDriver等)发送命令。 引入WebDriver.dll 当然,我们可以下载C#版本的WebDriver源代码,放在项目中进行调试或者修改,我们以v3.141.59为例: 源代码:https://git 阅读全文
posted @ 2020-04-12 12:43 talentzemin 阅读(262) 评论(0) 推荐(0)
摘要: Selenium 官方所有版本: https://selenium-release.storage.googleapis.com/index.html 镜像所有版本:https://npm.taobao.org/mirrors/selenium 最新版本:https://www.selenium.d 阅读全文
posted @ 2020-04-10 19:44 talentzemin 阅读(2419) 评论(0) 推荐(0)
摘要: 什么是CQRS模式? CQRS是Command and Query Responsibility Segregation的缩写,直译就是命令与查询责任分离的意思。 命令会改变对象的状态,但不返回任何数据。 查询会返回数据,但并不改变对象的状态。 如果将查询和命令简化理解成对数据的读写操作,CQRS模 阅读全文
posted @ 2020-04-02 11:29 talentzemin 阅读(1059) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; namespace CQRS { public class EventBroker { public List<Event> AllEvents = new List 阅读全文
posted @ 2020-04-02 10:38 talentzemin 阅读(236) 评论(0) 推荐(0)
摘要: 前言 在youtube推送上看到WSL2的消息(https://www.youtube.com/watch?v=MrZolfGm8Zk&t=1s),觉得很棒。恰好最近在学习PowerShell相关的东西,就想着安装Windows Terminal和WSL2体验一下。 安装好之后,我们其实就同时有了W 阅读全文
posted @ 2020-03-27 14:00 talentzemin 阅读(1275) 评论(0) 推荐(0)
摘要: Docker的安装在前面说过了,此处就不说了,我们检查一下版本: 步入正题。 首先,我们为项目创建Dockerfile(无扩展名) 确保Docker是启动状态: 构建镜像,注意名称必须是全部小写(此处是错误示范) 重新输入: 构建完成之后,我们运行Docker: -it 是指用交互的方式启动,而不是 阅读全文
posted @ 2020-03-27 11:59 talentzemin 阅读(847) 评论(0) 推荐(0)
摘要: 修改 我们打开一个页面,随便修改一下,保存,结果会出现错误:Unable to write file (NoPermissions (FileSystemError): Error: EACCES: permission denied, 我们在这里找到答案:https://github.com/mi 阅读全文
posted @ 2020-03-26 21:05 talentzemin 阅读(1669) 评论(0) 推荐(0)
摘要: 上一节我们在linux中创建了mvc项目,但是要是在linux中用命令行直接开发的话,就有些扯了。 我们可以使用VS Code进行远程开发,简单来说,就是在windows中打开VS Code,打开Linux项目文件,编辑修改调试。 我们安装VS Code的插件:Remote-WSL 安装好之后,打开 阅读全文
posted @ 2020-03-26 18:19 talentzemin 阅读(1139) 评论(0) 推荐(0)
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 46 下一页