随笔分类 -  js

摘要:1.查看js是否引入成功 2.引入成功js没有效果 3.查看js是否使用Windows.onload方法载入 Windows.onload方法载入需要页面所有资源载入完毕后执行,一旦有外部资源没有加载成功会导致js失效 $(function(){ }) $(document).ready(funct 阅读全文
posted @ 2022-04-22 14:14 why_set 阅读(873) 评论(0) 推荐(0)
摘要:网站 https://clipboardjs.com/ 用法 new ClipboardJS('.copy',{text:function(trigger) { return content;} }); 阅读全文
posted @ 2021-06-15 16:42 why_set 阅读(117) 评论(0) 推荐(0)
摘要://调用 $(function(){ $(".pimg").click(function(){ var _this = $(this);//当前图片 imgShow("#outerdiv", "#innerdiv", "#bigimg", _this); }); }); //方法 function 阅读全文
posted @ 2020-05-07 15:33 why_set 阅读(650) 评论(0) 推荐(0)
摘要:document.getElementById('元素ID').style.display='block'; document.getElementById('元素ID').style.display='none'; 阅读全文
posted @ 2020-05-07 14:10 why_set 阅读(1726) 评论(0) 推荐(0)