使用 vue-cli 构建的项目,模版是 webpack ,默认的 eslint 配置是以 standard 为基础的,要求是不使用分号。 如果我们希望要使用分号,则在 rules 字段增加配置: 'semi': ["error", "always"] 这样,你的 js 代码每一个表达式的结尾就应该... ...
分类:
其他好文 时间:
2018-08-22 17:09:31
阅读次数:
305
IntroductionUFW is a firewall configuration tool for iptables that is included with Ubuntu by default. This cheat sheet-style guide provides a quick r... ...
分类:
其他好文 时间:
2018-08-21 20:13:48
阅读次数:
165
// 单字段 》验证 》整数、小数 、%(同时需要) <script> //保底值 $.extend($.fn.validatebox.defaults.rules, { //此句为自定义重写校验 bottom_value: { validator: function (value) { retur ...
分类:
其他好文 时间:
2018-08-21 15:20:54
阅读次数:
287
Formation is very important when taking a group photo. Given the rules of forming K rows with N people as the following: The number of people in each ...
分类:
其他好文 时间:
2018-08-19 18:02:33
阅读次数:
145
A long-distance telephone company charges its customers by the following rules: Making a long-distance call costs a certain amount per minute, dependi ...
分类:
其他好文 时间:
2018-08-19 16:16:17
阅读次数:
205
Linux网络配置——实现不同网段虚拟机的通信 首先我们需要了解一些网络配置的基本命令 一:基础命令 在Linux中//etc/udev/rules.d/70-persistent-net.rules中存放着网卡名掉的基础信息,通过vim /etc/udev/rules.d/70-persisten ...
分类:
系统相关 时间:
2018-08-18 13:25:40
阅读次数:
281
一.JQuery之jQuery Validate(表单验证)插件1.引用jQuery和jQuery Validate到页面2.基本语法设置:使用validate()来写验证规则rules 设置验证规则验证规则中的一些规则设置:required:true, //必填remote: { //远程校验 u ...
分类:
Web程序 时间:
2018-08-11 01:39:23
阅读次数:
188
测试网站https://www.meishij.net/ 目标:使用fiddler完成图片的替换 1.首先找到图片地址,然后在fiddler中查找对应图片 2.将对应的图片请求拖入到fiddler的AutoResponder面板中,勾选Enable rules与EXACT ....,接着点选find ...
分类:
其他好文 时间:
2018-08-10 23:03:11
阅读次数:
176
一.背景 在上一篇《数据库操作类SqlHelper》博文的最后,提到了一个实践运用中遇到的问题,就是数据库表中的自增长字段的赋值不受人为控制。比如数据库有一个tb_Department表,DeptNO字段为自增长主键。 现在插入一行数据 啊!DeptNO字段怎么就是22了呢,不应该是从4开始吗? 原 ...
分类:
其他好文 时间:
2018-08-05 18:09:02
阅读次数:
148