摘要: scrapy的架构图: 组件 Scrapy Engine 引擎负责控制数据流在系统中所有组件中流动,并在相应动作发生时触发事件。 调度器(Scheduler) 调度器从引擎接受request并将他们入队,以便之后引擎请求他们时提供给引擎。 下载器(Downloader) 下载器负责获取页面数据并提供 阅读全文
posted @ 2018-04-12 18:58 JasonLiu 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 1、 安装SeleniumIDE插件 打开Selenium官网,选择download项中的Download latest released version from addons.mozilla.org,打开相应网址即可将SeleniumIDE添加到firefox中。 2、 学会使用Selenium 阅读全文
posted @ 2017-03-26 16:35 JasonLiu 阅读(910) 评论(0) 推荐(0) 编辑
摘要: 一.Use the following method printPrimes() for questions a–d. (a) Draw the control flow graph for the printPrimes() method. (b) Considertestcasest1=(n=3) 阅读全文
posted @ 2017-03-12 17:46 JasonLiu 阅读(439) 评论(0) 推荐(0) 编辑
摘要: 1. Install Junit(4.12), Hamcrest(1.3) with Eclipse 选中新建的项目,右键->Propertise->Java Build Path->Add External JARs 然后选中之前下好的junit-4.12.jar与hamcrest-core-1. 阅读全文
posted @ 2017-03-12 17:41 JasonLiu 阅读(1165) 评论(0) 推荐(0) 编辑
摘要: 1. 创建XMLHttpRequest 对象 2. PHP使用AJAX实例 (1) 写HTML表单。它包含一个简单的 HTML 表单和指向 JavaScript 的链接 (2) JavaScript 代码存储在 "clienthint.js" 文件中,它被链接到 HTML 文档 (3) 被 Java 阅读全文
posted @ 2017-03-08 17:14 JasonLiu 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 1. 连接数据库: 2. 断开连接: 3. 向 MySQL 连接发送查询或命令: 4. 选取数据库: 5. 向数据库插入新记录: 6. 从数据库选取数据: $result 变量中存放由 mysql_query() 函数返回的数据。之后使用 mysql_fetch_array() 函数以数组的形式从记 阅读全文
posted @ 2017-03-07 20:12 JasonLiu 阅读(224) 评论(0) 推荐(0) 编辑
摘要: Ueditor的引入: 1. 在后台资源目录(public/static/后台资源)下新建文件夹Ueditor,将ueditor文件内容复制到该文件夹下。 2. 在需要使用的html文件中引入三个js文件: ueditor.config.js ueditor.all.min.js lang/zh-c 阅读全文
posted @ 2017-03-02 16:54 JasonLiu 阅读(1585) 评论(0) 推荐(0) 编辑
摘要: 软件测试中的错误Failure, Error, Fault的区别: Failure: External, incorrect behavior with respect to the requirements or other description of the expected behavior 阅读全文
posted @ 2017-03-01 20:09 JasonLiu 阅读(3499) 评论(0) 推荐(0) 编辑
摘要: 自动生成的两种方式: 一. 1. 在build.php中配置好要生成的模板内容。 2. 在public目录下的index.php中直接调用\think\Build类的方法进行自动生成。 二. 1. 不依赖自动生成文件,直接使用默认目录生成模块。在index.php中输入 即可自动生成admin模块。 阅读全文
posted @ 2017-02-27 20:58 JasonLiu 阅读(4726) 评论(0) 推荐(1) 编辑
摘要: 定义命名空间:namespace sp1; 访问命名空间:\sp1\somefunction(); 空间引入机制:use sp1\ssp1; 之后使用限定名称访问方式即可访问: ssp1\somefunction(); 空间类元素的引入(只能引用类):use sp1\ssp1\Class1; //引 阅读全文
posted @ 2017-02-27 11:24 JasonLiu 阅读(232) 评论(0) 推荐(0) 编辑