会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
十年后2028
博客园
首页
新随笔
联系
订阅
管理
2021年6月21日
瀑布流(jquery)
摘要: <!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
阅读(33)
评论(0)
推荐(0)
2021年6月15日
用canvas压缩图片
摘要: <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
阅读(41)
评论(0)
推荐(0)
2021年6月13日
在小程序写下拉的动画
摘要: <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
阅读(98)
评论(0)
推荐(0)
2021年6月9日
gulp例子
摘要: 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
阅读(32)
评论(0)
推荐(0)
2021年4月9日
js 根据汉字首字母排序
摘要: let arr = ["贵州省", "江苏省", "江西省", "浙江省", "四川省", "安徽省", "山东省", "上海", "湖北省", "福建省", "辽宁省", "山西省", "河北省", "青海省", "黑龙江省", "内蒙古自治区", "北京"
阅读全文
posted @ 2021-04-09 16:33 十年后2028
阅读(1150)
评论(0)
推荐(0)
2020年11月5日
js 对金钱的封装:元转分、分转元、解决精度、保留小数点后两位
摘要: 分转化为元 - 正则解决精度 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
阅读(5261)
评论(0)
推荐(0)
2019年11月2日
一些封装函数
摘要: 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
阅读(128)
评论(0)
推荐(0)
2019年10月9日
css清除浮动
摘要: ```css .clearfix:after{/*伪元素是行内元素 正常浏览器清除浮动方法*/ content: ""; display: block; height: 0; clear:both; visibility: hidden; } .clearfix{ *zoom: 1;/...
阅读全文
posted @ 2019-10-09 11:39 十年后2028
阅读(108)
评论(0)
推荐(0)
2019年9月11日
对象遍历
摘要: 1、从一个数组对象中获取最里层id
阅读全文
posted @ 2019-09-11 10:06 十年后2028
阅读(98)
评论(0)
推荐(0)
2019年8月22日
vue 小工具
摘要: 1、vue里修改微信的title
阅读全文
posted @ 2019-08-22 09:32 十年后2028
阅读(123)
评论(0)
推荐(0)
下一页
公告