摘要: <!DOCTYPE html> <html> <head> <title>瀑布流</title> <meta charset="utf-8"> </head> <style type="text/css"> ul,li{list-style: none; } *{margin:0; padding: 阅读全文
posted @ 2021-06-21 10:05 十年后2028 阅读(29) 评论(0) 推荐(0) 编辑
摘要: <input type="file" accept="image.*" id="btn"> let inp = document.getElementById('btn'); addEventListener('change', (e) => { let file = e.target.files[ 阅读全文
posted @ 2021-06-15 08:01 十年后2028 阅读(39) 评论(0) 推荐(0) 编辑
摘要: <view class="head-wrap" style="height:300rpx;background:#999;"></view> <view class="card-wrap" style="transform:{{translateValue}};transition:{{transi 阅读全文
posted @ 2021-06-13 09:30 十年后2028 阅读(95) 评论(0) 推荐(0) 编辑
摘要: const gulp = require('gulp'); const htmlmin = require('gulp-htmlmin'); const fileinclude = require('gulp-file-include'); const csso = require('gulp-cs 阅读全文
posted @ 2021-06-09 11:10 十年后2028 阅读(28) 评论(0) 推荐(0) 编辑
摘要: let arr = ["贵州省", "江苏省", "江西省", "浙江省", "四川省", "安徽省", "山东省", "上海", "湖北省", "福建省", "辽宁省", "山西省", "河北省", "青海省", "黑龙江省", "内蒙古自治区", "北京" 阅读全文
posted @ 2021-04-09 16:33 十年后2028 阅读(1120) 评论(0) 推荐(0) 编辑
摘要: 分转化为元 - 正则解决精度 export const regFenToYuan = (fen) =>{ var num = fen; num=fen*0.01; num+=''; var reg = num.indexOf('.') >-1 ? /(\d{1,3})(?=(?:\d{3})+\.) 阅读全文
posted @ 2020-11-05 10:48 十年后2028 阅读(5079) 评论(0) 推荐(0) 编辑
摘要: js //解析URL function parseURL(url) { var a = document.createElement('a'); a.href = url; return { source: url, protocol: a.protocol.replace(':',''), hos 阅读全文
posted @ 2019-11-02 11:08 十年后2028 阅读(122) 评论(0) 推荐(0) 编辑
摘要: ```css .clearfix:after{/*伪元素是行内元素 正常浏览器清除浮动方法*/ content: ""; display: block; height: 0; clear:both; visibility: hidden; } .clearfix{ *zoom: 1;/... 阅读全文
posted @ 2019-10-09 11:39 十年后2028 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 1、从一个数组对象中获取最里层id 阅读全文
posted @ 2019-09-11 10:06 十年后2028 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 1、vue里修改微信的title 阅读全文
posted @ 2019-08-22 09:32 十年后2028 阅读(120) 评论(0) 推荐(0) 编辑