dom-to-image插件网页生成截图保存下载 2021-9-24 10:55 | 1,291 | 0 | 前端 93 字 | 3 分钟 [github author="tsayen" project="dom-to-image"]https://github.com/tsayen/dom-to-image[/github] 一开始是用html2canvas,发现满足不了需求。于是朋友推荐我用dom-to-image 引用<script src="https://cdn.boo… js截图插件
js每次复制随机微信号代码 2020-12-30 15:34 | 1,863 | 0 | 前端 107 字 | 2 分钟 由于网站有多个客服微信,所以需要客户复制一个随机微信号码 移动端js实现点击复制到剪贴板,【真正】兼容所有浏览器uc、qq、微信、手机自带等浏览器https://github.com/majiang666/copy 引用 <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/j… js
JS代码:设为首页 加入收藏 2019-5-19 20:47 | 1,553 | 0 | 前端 33 字 | 2 分钟 <a href="javascript:void(0)" onclick="AddFavorite(window.location,document.title)">加入收藏</a> <a href="javascript:void(0)" onclick="SetHome(this,window.location)"… js JS实现PC端URL跳转到对应手机移动端URL 2019-12-30 16:50 | 2,151 | 0 | 前端 86 字 | 2 分钟 注意:这个办法并非最优选择,弊端在于对搜索引擎并不友好,因为加载资源后再跳转,增加了用户访问成本。建议使用301重定向来处理 function GetUrlRelativePath() { var url = document.location.toString(); var arrUrl = url.split("//"); var start … jsURL
JS实现PC端URL跳转到对应手机移动端URL 2019-12-30 16:50 | 2,151 | 0 | 前端 86 字 | 2 分钟 注意:这个办法并非最优选择,弊端在于对搜索引擎并不友好,因为加载资源后再跳转,增加了用户访问成本。建议使用301重定向来处理 function GetUrlRelativePath() { var url = document.location.toString(); var arrUrl = url.split("//"); var start … jsURL