
JS
大雾四时起
这个作者很懒,什么都没留下…
展开
-
cookie设置过期时间 toUTCString() 方法
<script> var d = new Date() d.setTime(d.getTime()+7*1000*60*60*24) //7天后过期 document.cookie='sex=女;expires='+d.toUTCString()+";path=/" </script>原创 2021-01-11 15:00:55 · 678 阅读 · 1 评论 -
js实现简单的点名器随机色
js简单实现点名器随机色 布局(排版) <body> <button onclick="star()">开始</button> <button onclick="stop()">结束</button> <div id="box"> </div> </body> css样式 <style> #box{ width: 240px; height: 400px; } #a{原创 2020-09-17 09:55:49 · 2208 阅读 · 3 评论