随笔分类 -  js

摘要:var msg = ''; $(".hover").each(function() msg += $(this).attr('data-txt') + ' '; }); 阅读全文
posted @ 2020-07-26 11:49 bubuchu 阅读(177) 评论(0) 推荐(0)
摘要:点击右边内容:<span onclick="copyContent(this);" title="点击复制">啊,我被复制了</span><br /> 已复制内容:<input id="copy_content" type="text" /> <script type="text/javascrip 阅读全文
posted @ 2019-11-25 14:56 bubuchu 阅读(203) 评论(0) 推荐(0)
摘要:document.body.onselectstart=document.body.oncontextmenu=function(){ return false;} 阅读全文
posted @ 2019-03-25 21:38 bubuchu 阅读(788) 评论(0) 推荐(0)
摘要:<script type="text/javascript">function stops(){ return false;}document.oncontextmenu=stops;</script> 阅读全文
posted @ 2018-08-21 15:41 bubuchu 阅读(1092) 评论(0) 推荐(0)
摘要:官方网站:http://echarts.baidu.com 阅读全文
posted @ 2017-12-14 16:43 bubuchu 阅读(250) 评论(0) 推荐(0)
摘要:window.onload=function(){ function(a); function(b); } 阅读全文
posted @ 2017-06-27 14:34 bubuchu 阅读(482) 评论(0) 推荐(0)
摘要:var myDate = new Date(); myDate.getYear(); //获取当前年份(2位) myDate.getFullYear(); //获取完整的年份(4位,1970-????) myDate.getMonth(); //获取当前月份(0-11,0代表1月) myDate.g 阅读全文
posted @ 2017-06-27 14:33 bubuchu 阅读(394) 评论(0) 推荐(0)