03 2019 档案

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