摘要: 1、通过request.get获取获取文本,这一步需要注意的是中文编码问题:新建文件curl.js 2、读取想要的数据,新建文件index.js,这里cheerio可以当成jquery来用。 阅读全文
posted @ 2017-02-09 12:49 YH_W 阅读(230) 评论(0) 推荐(0) 编辑
摘要: tomcat的图标是一只小猫,我们可以通过覆盖ROOT下的favicon.ico替换掉这个图标; jetty没有ROOT文件件,当我们给它新建一个ROOT文件夹后在里面增加一个index页面,我们启动jetty后将会自动访问这个index页面,因此我们可以通过这个页面更改jetty的图标,具体如下: 阅读全文
posted @ 2016-12-15 18:12 YH_W 阅读(789) 评论(0) 推荐(1) 编辑
摘要: 重装系统后新装了myeclipse,刚开始运行web项目无任何问题,后来出现无法启动的情况,原因是找不到class,这时候到tomcat里的项目中的web-inf/class文件夹下发现没有生成相应的class文件,采取以下措施: 1、clean,重新部署,失败 2、clean指定的项目,重新部署, 阅读全文
posted @ 2016-11-14 23:53 YH_W 阅读(2260) 评论(0) 推荐(0) 编辑
摘要: 问题: 主表 @Data@Entity(name = "husband")@NoArgsConstructor@EqualsAndHashCode(callSuper = false) public class Husband extends BaseEntity { .... @OneToOne( 阅读全文
posted @ 2016-08-03 10:45 YH_W 阅读(448) 评论(0) 推荐(0) 编辑
摘要: 今天发现jquery-validate在验证input标签时,标签必须指定type失去焦点时才能及时响应错误信息的验证,否则必须submit时才会验证。 阅读全文
posted @ 2016-07-11 23:07 YH_W 阅读(647) 评论(0) 推荐(0) 编辑
摘要: <style> <style> .combobox-input{ height: 92%; width: 100% !important; position: absolute; top: 0; outline: none; } .mws-form-item.small{ position:rela 阅读全文
posted @ 2016-06-14 17:46 YH_W 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 1、使用Python注意缩进问题,不然会出现语法问题 2、Python3中的print用法改变。 阅读全文
posted @ 2016-04-13 10:23 YH_W 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 参考网址:http://cssass.com/blog/2008/15.html 阅读全文
posted @ 2015-12-02 16:35 YH_W 阅读(137) 评论(0) 推荐(0) 编辑
摘要: ---恢复内容开始---场景:thinkphp3.2.2+非本地数据库mysql(port:3307)+'DB_TYPE'=>'pdo',问题:当mysql端口修改为3306时采用pdo方式没有任何问题,当修改为非3306时就会出现无法连接的情况如SQLSTATE[HY000][2002]乱码(改下... 阅读全文
posted @ 2015-11-24 09:58 YH_W 阅读(5973) 评论(0) 推荐(0) 编辑
摘要: ├─Application 应用目录 │ ├─Common │ │ ├─Common │ │ └─Conf │ ├─Home │ │ ├─Conf │ │ ├─Common (common.php+function.php)│ │ ├─Controller │ │ ├─Model│ ... 阅读全文
posted @ 2015-11-11 17:45 YH_W 阅读(195) 评论(0) 推荐(0) 编辑