- 博客(5)
- 收藏
- 关注
原创 vue 图片放大旋转缩小等功能
npm install v-viewer --saveimport Viewer from 'v-viewer'import 'viewerjs/dist/viewer.css'Vue.use(Viewer);Viewer.setDefaults({ Options: { "inline": true, "button": true, "navbar": true, "title": true, "toolbar": true, "tooltip": true, "movable": true
2021-04-26 13:39:19
854
原创 vue 前端生成二维码 (包括vue-qr和qrcode)
一、vue-qrnpm install vue-qr --saveimport vueQr from ‘vue-qr’<template> <vue-qr :text="downloadData.url" :margin="0" colorDark="#f67b29" colorLight="#fff" :logoSrc="downloadData.icon + '?cache'" :logoScale="0.3" :size="200"></vue-qr>&
2021-04-26 09:07:37
547
原创 时间戳与时间格式的互相转换
//定时获取时间 timeFormate(timeStamp) { let year = new Date(timeStamp).getFullYear(); let month =new Date(timeStamp).getMonth() + 1 < 10? "0" + (new Date(timeStamp).getMonth() + 1): new ...
2019-08-30 14:54:57
250
原创 js微信分享步骤
1、引入文件<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>2、// 微信分享$(function(){ var time=Date.parse(new Date()); var localurl=window.docume...
2019-08-30 10:50:46
789
原创 jQuery小功能集锦
一、jQuery实现回到顶部功能(当页面滚到到一定距离出现回到顶部按钮)HTML代码:&amp;lt;a id=&quot;topzm&quot; style=&quot;position: fixed;bottom: 170px;right: 0px;z-index: 10000;border-radius: 5px;background:#c7a05f ;&quot; &amp;gt; &
2018-11-27 14:15:16
309
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人