This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global https.proxy http://127.0.0.1:1080 | |
git config --global https.proxy https://127.0.0.1:1080 | |
git config --global --unset http.proxy | |
git config --global --unset https.proxy | |
npm config delete proxy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const router = new VueRouter({ | |
mode: 'history', | |
routes: [...] | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
带动 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 身份证号码验证 | |
jQuery.validator.addMethod("isIdCardNo", function(value, element) { | |
// var idCard = /^(\d{6})()?(\d{4})(\d{2})(\d{2})(\d{3})(\w)$/; | |
return this.optional(element) || isIdCardNo(value); | |
}, "请输入正确的身份证号码"); | |
// 手机号码验证 | |
jQuery.validator.addMethod("isMobile", function(value, element) { | |
var length = value.length; | |
var mobile = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ArrayParams { | |
private static Logger logger = Logger.getLogger(MapParams.class); | |
private List<Object> params; | |
private String pattern = "yyyy-MM-dd"; | |
private ArrayParams() { | |
} | |
public static ArrayParams begin() { | |
ArrayParams arrayParams = new ArrayParams(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CamelCaseUtils { | |
private static final char SEPARATOR = '_'; | |
public static String toUnderlineName(String s) { | |
if (s == null) { | |
return null; | |
} | |
StringBuilder sb = new StringBuilder(); |