会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Teaism
未来很美好,爱生活爱自由,Just do it !Let's Go !
博客园
首页
新随笔
联系
管理
订阅
1
2
下一页
2025年8月5日
倒计时函数
摘要: 微信小程序中 /** * @that: this * @countdownKey: 倒计时的key * @timerKey: 定时器的key * @countdown: 倒计时的秒数,默认60 * */ export function startCountdown(that, countdownKe
阅读全文
posted @ 2025-08-05 11:20 Teaism
阅读(8)
评论(0)
推荐(0)
2025年7月25日
微信小程序自定义验证 WxValidate
摘要: wxValidate.js /** * 表单验证 * * @param {Object} rules 验证字段的规则 * @param {Object} messages 验证字段的提示信息 * */ class WxValidate { constructor(rules = {}, messag
阅读全文
posted @ 2025-07-25 16:36 Teaism
阅读(14)
评论(0)
推荐(0)
2024年3月4日
记录bug以及解决方法
摘要: 踩坑——Elementui Table控件动态列初始化错位、错行问题 感谢Huijie Xu
阅读全文
posted @ 2024-03-04 17:45 Teaism
阅读(16)
评论(0)
推荐(0)
2023年9月14日
js tools
摘要: /* ** randomWord 产生任意长度随机字母数字组合 ** randomFlag-是否任意长度 min-任意长度最小位[固定位数] max-任意长度最大位 ** xuanfeng 2014-08-28 */ export function randomWord(randomFlag, mi
阅读全文
posted @ 2023-09-14 13:41 Teaism
阅读(32)
评论(0)
推荐(0)
2022年9月7日
各种激活方法
摘要: jetBrains toolbox 激活 1. https://search.censys.io/ 搜索 services.http.response.headers.location: account.jetbrains.com/fls-auth 2. 状态码302才可用 3. http://13
阅读全文
posted @ 2022-09-07 22:02 Teaism
阅读(781)
评论(0)
推荐(0)
2018年6月27日
表格头部固定(列定宽)
摘要: ``` 头部固定的表格 姓名 姓名 姓名 姓名 姓名 姓名 姓名 姓名 姓名 姓名 姓名 姓名 姓名 姓名 姓名 姓名 姓名 姓名 姓名 ...
阅读全文
posted @ 2018-06-27 14:19 Teaism
阅读(135)
评论(0)
推荐(0)
2018年4月25日
js 解密
摘要: ``` Document ```
阅读全文
posted @ 2018-04-25 18:14 Teaism
阅读(225)
评论(0)
推荐(0)
2017年11月29日
时间 Date
摘要: 时间选择 月最后一天,选择3/6/12个月
阅读全文
posted @ 2017-11-29 11:35 Teaism
阅读(178)
评论(0)
推荐(0)
2017年11月20日
Git command
摘要: 删除 node_modules 包 cmd,admin模式下,进入文件下执行: rd /s /q node_modules npm install --legacy-peer-deps 常用命令 查看、添加、提交、删除、找回,重置修改文件 git help # 显示command的help git
阅读全文
posted @ 2017-11-20 15:39 Teaism
阅读(178)
评论(0)
推荐(0)
2017年11月17日
Git note
摘要: feat:新功能(feature) fix:修补bug docs:文档(documentation) style: 格式(不影响代码运行的变动)注意不是 css 修改 refactor:重构(即不是新增功能,也不是修改bug的代码变动) test:增加测试 chore:构建过程或辅助工具的变动 sc
阅读全文
posted @ 2017-11-17 15:57 Teaism
阅读(458)
评论(0)
推荐(0)
2017年6月5日
css 小技巧
摘要: 伪元素:改变文本选中的背景色 多行文本垂直水平局中
阅读全文
posted @ 2017-06-05 10:19 Teaism
阅读(139)
评论(0)
推荐(0)
2017年5月3日
css animate 动画
摘要: ``` /* animation */ /* 淡入 */ .a-fadein{-webkit-animation-name:fadein;-moz-animation-name:fadein;-ms-animation-name:fadein;animation-name:fadein;} /* define */ /* 淡入 */ @-webkit-keyframes fadein{ 0...
阅读全文
posted @ 2017-05-03 10:28 Teaism
阅读(172)
评论(0)
推荐(0)
css media
摘要: ``` / media / / 横屏 / @media screen and (orientation:landscape){ } / 竖屏 / @media screen and (orientation:portrait){ } / 窗口宽度
阅读全文
posted @ 2017-05-03 10:27 Teaism
阅读(177)
评论(0)
推荐(0)
2017年3月21日
js 正则
摘要: /*! * validator - v1.0 * Copyright 2014 create by huanghaiping 同事 */ (function(wnd,$){ if(typeof Array.prototype.has == 'undefined'){ Array.prototype.
阅读全文
posted @ 2017-03-21 16:20 Teaism
阅读(214)
评论(0)
推荐(0)
2016年12月21日
github note
摘要: ssh agent 参考: [http://mah.everybody.org/docs/ssh] Hi Teaism! You've successfully authenticated, but GitHub does not provide shell access. 参考: [https:/
阅读全文
posted @ 2016-12-21 11:29 Teaism
阅读(168)
评论(0)
推荐(0)
2016年11月4日
css background-repeat
摘要: .background repeat { background repeat: no repeat, repeat, repeat x, repeat y, round, round space, space, space round; } repeat 相当于repeat repeat repea
阅读全文
posted @ 2016-11-04 11:37 Teaism
阅读(268)
评论(0)
推荐(0)
2016年10月20日
js 扎实基础
摘要: DOM对象和JQuery对象的区别 [http://www.cnblogs.com/yellowapplemylove/archive/2011/04/19/2021583.html] [https://segmentfault.com/a/1190000003710344]
阅读全文
posted @ 2016-10-20 17:00 Teaism
阅读(129)
评论(0)
推荐(0)
2016年10月11日
js 浏览器宽度高度
摘要: function getViewSizeWithoutScrollbar(){//不包含滚动条 return { width : document.documentElement.clientWidth, height: document.documentElement.clientHeight }
阅读全文
posted @ 2016-10-11 16:40 Teaism
阅读(169)
评论(0)
推荐(0)
2016年9月5日
立即执行函数
摘要: 立即执行函数 函数前的代码要加分号,不然会出现错误;
阅读全文
posted @ 2016-09-05 17:10 Teaism
阅读(123)
评论(0)
推荐(0)
2016年8月29日
js 魔法小书
摘要: this理解 一个函数被直接调用的时候,属于全局调用,这时候它的 this 指向 全局对象。严格模式 ‘use strict’下undefined。 当一个函数被当作一个对象的方法调用的时候,this 指向函数所在的这个对象; setTimeout坑可使用闭包。 当作构造函数调用时,this 指向了
阅读全文
posted @ 2016-08-29 10:42 Teaism
阅读(203)
评论(0)
推荐(0)
css 魔法小书
摘要: 浏览器自定义滚动条 http://www.cnblogs.com/koleyang/p/5484922.html https://www.w3cplus.com/css/new-scroll-features-that-change-the-user-experience.html https://
阅读全文
posted @ 2016-08-29 10:26 Teaism
阅读(151)
评论(0)
推荐(0)
2016年6月23日
python note
摘要: 参考: http://www.liaoxuefeng.com/wiki/0014316089557264a6b348958f449949df42a6d3a2e542c000
阅读全文
posted @ 2016-06-23 11:03 Teaism
阅读(139)
评论(0)
推荐(0)
2016年6月22日
js 获取元素的几种方式
摘要: document.querySelector(); document.querySelectorAll(); document.getElementById(); document.getElementsByName(); document.getElementsByTagName(); docum
阅读全文
posted @ 2016-06-22 15:30 Teaism
阅读(4258)
评论(0)
推荐(0)
2016年6月17日
js 数组
摘要: 数组声明 var arr1 = {name: "chen", age: "20", sex: "femal"};
阅读全文
posted @ 2016-06-17 12:04 Teaism
阅读(138)
评论(0)
推荐(0)
2016年6月7日
javascript 输出 素数/质数
摘要: /* 第一种 :*/ // 声明 var i, j, arr = [] ; // 1-101 被除数 for( i =2; i < 101; i++) { // 除数 ,因为是素数,所以从2 开始,并小于被除数, 循环 for( j = 2; j < i; j++) { // 取模:如果能整除,表示非素数,跳出循环; if ( i % j === 0 ) { break; } } // ...
阅读全文
posted @ 2016-06-07 12:50 Teaism
阅读(2040)
评论(0)
推荐(0)
css3 transform
摘要: transform: rotate(argument); 旋转:只有一个参数角度值,正表示顺时针旋转,负表示逆时针旋转;不会改变物体的形状, transform: skew(argument,argument) 倾斜:1/2个参数角度值表示XY;会改变物体的形状。 如图所示: transform:
阅读全文
posted @ 2016-06-07 10:25 Teaism
阅读(140)
评论(0)
推荐(0)
2016年5月30日
移动端适配js
摘要: <script> (function (doc, win) { var docEl = doc.documentElement, resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize', recalc =
阅读全文
posted @ 2016-05-30 17:37 Teaism
阅读(154)
评论(0)
推荐(0)
2016年5月19日
css hack
摘要: IE6/IE7下父元素有相对/绝对定位时,子元素在IE6和IE7下overflow:hidden;失效 子元素有相对/绝对定位时,父元素overflow:hidden;失效 解决方法: 在要overflow:hidden;的元素上添加 position:relative 参考:http://www.
阅读全文
posted @ 2016-05-19 18:01 Teaism
阅读(138)
评论(0)
推荐(0)
2016年5月6日
div中图片居中超出后隐藏,center image in div with overflow hidden
摘要: 未知图片宽高时 note:这种居中只是相对于水平居中。 已知图片的宽度 ( 400*400) note: 这个居中包含水平和垂直居中,但前提是已知图片的宽高。 参考资料 http://stackoverflow.com/questions/10830735/center-image-in-div-w
阅读全文
posted @ 2016-05-06 14:21 Teaism
阅读(1965)
评论(0)
推荐(0)
2016年5月3日
gulp + sass + gulpPlugins learning
摘要: 前言 每安装一个记得查看版本,可看是否安装成功。 安装流程: node—ruby—gulp—sass—gulp plugins—config gulpfile.js 安装node 到http://nodejs.cn/(中文版^_^)下载并安装; 如此npm也会一并安装了npm常用命令[http://
阅读全文
posted @ 2016-05-03 16:05 Teaism
阅读(603)
评论(0)
推荐(0)
1
2
下一页
公告