自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 问答 (1)
  • 收藏
  • 关注

原创 HTML和JS写的简单游戏——打地鼠

使用HTML和JS写的简单游戏——打地鼠。

2023-06-06 13:11:47 1109 1

原创 uni-app 应用退出

if (plus.os.name.toLowerCase() === 'android') { plus.runtime.quit(); } else { const threadClass = plus.ios.importClass("NSThread"); const mainThread = plus.ios.invoke(threadClass, "mainThread"); plus.ios.invoke(mainThread, "exi.

2021-09-03 18:18:08 392

原创 css 文字过长转化为省略号

<p class="title">这里是很长很长的一句话</p>.title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis;}

2021-09-03 02:25:53 174

原创 vue数值格式化

格式化前格式化后代码块filters: { numberFormat: function (value) { let unit = ''; var k = 10000, sizes = ['', '万', '亿', '万亿'], i; if(value < k){ value =value; }else{ i = Math.floor(Math.log(value) / M...

2021-09-02 16:32:45 467

原创 实现防抖功能

export function debounce(fun, time=200) { //防抖 let Time = null return function (...args) { //Time不为null 清空Time if(Time){clearTimeout(Time)} Time = setTimeout(() => { fun.apply(this, args) },time) }}

2021-09-02 15:40:30 74

原创 时间格式化

export function formatDate(date, fmt) { //获取年份 //y+ => 一个或者多个 //y* => 零个或者多个 // y? => 0个或者1个 if (/(y+)/.test(fmt)) { // substr 截取 fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length)); } let o.

2021-09-02 15:39:10 54

原创 JavaScript “佛祖保佑 永无bug”

1.js注释大佛/* _ooOoo_ * o8888888o * 88" . "88 * (| -_- |) * O\ = /O * ____/`---'\____ *

2021-08-30 16:42:19 795

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除