- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 canvs绘制动态时钟
A draw canvas let draw = document.getElementById('draw'); let context = draw.getContext('2d'); let angle = Math.PI/360; var DateTime = { initDial: function(){
2018-01-17 14:15:20 452
原创 使用回调和Promise两种方法实现3个小球依次移动
promise调用 .ball{ width: 20px; height: 20px; border-radius: 50%; } .ball1{ background-color: red; } .ball2{ background-color: yellow; } .ball3{ background-color: green
2018-01-14 19:29:29 423
原创 原生按字数多少自动切换焦点
自动切换焦点 (function(){ function focusForwad(event){ var target = event.target; if(target.value.length === target.maxLength) { let form = target.fo
2018-01-11 18:39:57 209
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人