上一页 1 2 3 4 5 6 7 8 ··· 10 下一页
摘要: // 判断端口 var browser = { versions: function() { var u = navigator.userAgent, app = navigator.appVersion; return { //移动终端浏览器版本信息 WxApp: u.indexOf("Micro 阅读全文
posted @ 2020-07-15 16:05 风一样的猿 阅读(1044) 评论(0) 推荐(0)
摘要: width: fit-content; background: linear-gradient(45deg, red, rgb(135, 230, 255), rgb(255, 135, 230)); background-image: linear-gradient(45deg, red, rgb 阅读全文
posted @ 2020-07-14 09:49 风一样的猿 阅读(277) 评论(0) 推荐(0)
摘要: npm install jszip https://www.npmjs.com/package/file-saver npm install file-saver2、在所需页面中引入 import JSZip from "jszip"; import FileSaver from "file-sav 阅读全文
posted @ 2020-07-13 14:36 风一样的猿 阅读(360) 评论(0) 推荐(0)
摘要: 1、父组件向子组件传值 //通过v-bind 将需要传的值绑定在 子组件上 <Goods_One v-if="value == 1 || value == 5" v-bind:value_1="value"></Goods_One>//子组件通过props获取父组件传递过来的值 props:['va 阅读全文
posted @ 2020-07-09 20:04 风一样的猿 阅读(113) 评论(0) 推荐(0)
摘要: // 方式1 <input type="text" onclick="click()"/> // 方式2 document.querySelector('input').onClick = function(e) { // ... } // 方式3 document.querySelector('i 阅读全文
posted @ 2020-07-08 20:42 风一样的猿 阅读(1323) 评论(0) 推荐(0)
摘要: // 验证码 限制4位数 <div class="yam"> <input value="" oninput="if(value.length>4)value=value.slice(0,4);if(value<0)value=0" type="number" placeholder="验证码" / 阅读全文
posted @ 2020-07-08 09:59 风一样的猿 阅读(261) 评论(0) 推荐(0)
摘要: // 获取地址中的参数 function parseUrl() { var searchHref = window.location.search.replace('?', ''); var params = searchHref.split('&'); var returnParam = {}; 阅读全文
posted @ 2020-07-08 09:57 风一样的猿 阅读(324) 评论(0) 推荐(0)
摘要: 限制长度 <input type="number" oninput="if(value.length>11)value=value.slice(0,11)" /> //限制最大值10 <input type="number" oninput="if(value>10)value=10" /> //限 阅读全文
posted @ 2020-07-08 09:56 风一样的猿 阅读(14671) 评论(0) 推荐(0)
摘要: formatDate(value) { let date = new Date(value); let y = date.getFullYear(); let MM = date.getMonth() + 1; MM = MM < 10 ? "0" + MM : MM; let d = date.g 阅读全文
posted @ 2020-06-29 20:40 风一样的猿 阅读(5358) 评论(0) 推荐(0)
摘要: 1.安装依赖 npm install -S file-saver xlsx npm install -D script-loader 2.创建Blob.js const blob = function (view) { "use strict"; view.URL = view.URL || vie 阅读全文
posted @ 2020-06-28 17:17 风一样的猿 阅读(2726) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 10 下一页