03 2019 档案
摘要:document.querySelector("#pro-code").focus(); console.log("focus:" + document.activeElement.id);
阅读全文
摘要:svg 动画参考: https://blog.csdn.net/chy555chy/article/details/53535581 https://developer.mozilla.org/en-US/docs/Web/SVG/SVG_animation_with_SMIL#Animating_
阅读全文
摘要:mac 下 webstorm 格式化代码的快捷键 Option+Command+l
阅读全文
摘要:getQueryString:function(name){ var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i'); var r = window.location.search.substr(1).match(reg); if (r != null) { ...
阅读全文
摘要:要求:由数字和字母组成,并且要同时含有数字和字母,且长度要在8-16位之间。 ^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$ 分开来注释一下:^ 匹配一行的开头位置(?![0-9]+$) 预测该位置后面不全是数字(?![a-zA-Z]+$) 预测该位置后面不
阅读全文
摘要:参考链接: https://github.com/axuebin/articles/issues/26#issuecomment-466337929
阅读全文
浙公网安备 33010602011771号