随笔分类 -  JavaScript

摘要:html代码 <div class="page-block"> <div class="page page-1"> <ul> <li class="article-hover"> <div class="info-content"> <a href="1.html" target="mainIfra 阅读全文
posted @ 2022-09-06 10:30 huangchun0121 阅读(440) 评论(0) 推荐(0) 编辑
摘要:html: <ul> <li><a class="list-group-item text-center " href="#">中心简介</a></li> <li><a class="list-group-item text-center " href="#" >师资队伍</a></li> <li> 阅读全文
posted @ 2022-09-06 10:28 huangchun0121 阅读(2004) 评论(0) 推荐(0) 编辑
摘要:事件 onclick 点击事件 onload 用户进入某个页面的时候触发(onload 事件可用于检测访问者的浏览器类型和浏览器版本,并基于这些信息来加载网页的正确版本。) onunload 用户离开某个页面的时候触发(onload 和 onunload 事件可用于处理 cookie。) oncha 阅读全文
posted @ 2022-09-06 10:26 huangchun0121 阅读(396) 评论(0) 推荐(0) 编辑
摘要:<script> var t=null; t=setTimeout(time,1000); function time(){ clearTimeout(t);//清除定时器 dt=new Date(); var y=dt.getFullYear(); var mt=dt.getMonth()+1; 阅读全文
posted @ 2022-09-05 23:09 huangchun0121 阅读(46) 评论(0) 推荐(0) 编辑