摘要: 踩坑——Elementui Table控件动态列初始化错位、错行问题 感谢Huijie Xu 阅读全文
posted @ 2024-03-04 17:45 Teaism 阅读(3) 评论(0) 推荐(0) 编辑
摘要: /* ** randomWord 产生任意长度随机字母数字组合 ** randomFlag-是否任意长度 min-任意长度最小位[固定位数] max-任意长度最大位 ** xuanfeng 2014-08-28 */ export function randomWord(randomFlag, mi 阅读全文
posted @ 2023-09-14 13:41 Teaism 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(655) 评论(0) 推荐(0) 编辑
摘要: ``` 头部固定的表格 姓名 姓名 姓名 姓名 姓名 姓名 姓名 姓名 姓名 姓名 姓名 姓名 姓名 姓名 姓名 姓名 姓名 姓名 姓名 ... 阅读全文
posted @ 2018-06-27 14:19 Teaism 阅读(130) 评论(0) 推荐(0) 编辑
摘要: ``` Document ``` 阅读全文
posted @ 2018-04-25 18:14 Teaism 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 时间选择 月最后一天,选择3/6/12个月 阅读全文
posted @ 2017-11-29 11:35 Teaism 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 删除 node_modules 包 cmd,admin模式下,进入文件下执行: rd /s /q node_modules 常用命令 查看、添加、提交、删除、找回,重置修改文件 git help # 显示command的help git show # 显示某次提交的内容 git show $id g 阅读全文
posted @ 2017-11-20 15:39 Teaism 阅读(174) 评论(0) 推荐(0) 编辑
摘要: init_add_status_commit_push 基础概念 已提交(committed):已提交表示该文件已经被安全地保存在本地数据库中了; 已修改(modified):已修改表示修改了某个文件,但还没有提交保存; 已暂存(staged):已暂存表示把已修改的文件放在下次提交时要保存的清单中。 阅读全文
posted @ 2017-11-17 15:57 Teaism 阅读(430) 评论(0) 推荐(0) 编辑
摘要: 伪元素:改变文本选中的背景色 多行文本垂直水平局中 阅读全文
posted @ 2017-06-05 10:19 Teaism 阅读(132) 评论(0) 推荐(0) 编辑
摘要: ``` /* 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 阅读(170) 评论(0) 推荐(0) 编辑
摘要: ``` / media / / 横屏 / @media screen and (orientation:landscape){ } / 竖屏 / @media screen and (orientation:portrait){ } / 窗口宽度 阅读全文
posted @ 2017-05-03 10:27 Teaism 阅读(171) 评论(0) 推荐(0) 编辑
摘要: /*! * 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 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(157) 评论(0) 推荐(0) 编辑
摘要: .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 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(121) 评论(0) 推荐(0) 编辑
摘要: function getViewSizeWithoutScrollbar(){//不包含滚动条 return { width : document.documentElement.clientWidth, height: document.documentElement.clientHeight } 阅读全文
posted @ 2016-10-11 16:40 Teaism 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 立即执行函数 函数前的代码要加分号,不然会出现错误; 阅读全文
posted @ 2016-09-05 17:10 Teaism 阅读(119) 评论(0) 推荐(0) 编辑
摘要: this理解 一个函数被直接调用的时候,属于全局调用,这时候它的 this 指向 全局对象。严格模式 ‘use strict’下undefined。 当一个函数被当作一个对象的方法调用的时候,this 指向函数所在的这个对象; setTimeout坑可使用闭包。 当作构造函数调用时,this 指向了 阅读全文
posted @ 2016-08-29 10:42 Teaism 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 浏览器自定义滚动条 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 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 参考: http://www.liaoxuefeng.com/wiki/0014316089557264a6b348958f449949df42a6d3a2e542c000 阅读全文
posted @ 2016-06-23 11:03 Teaism 阅读(133) 评论(0) 推荐(0) 编辑
摘要: document.querySelector(); document.querySelectorAll(); document.getElementById(); document.getElementsByName(); document.getElementsByTagName(); docum 阅读全文
posted @ 2016-06-22 15:30 Teaism 阅读(4231) 评论(0) 推荐(0) 编辑
摘要: 数组声明 var arr1 = {name: "chen", age: "20", sex: "femal"}; 阅读全文
posted @ 2016-06-17 12:04 Teaism 阅读(127) 评论(0) 推荐(0) 编辑
摘要: /* 第一种 :*/ // 声明 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 阅读(2012) 评论(0) 推荐(0) 编辑
摘要: transform: rotate(argument); 旋转:只有一个参数角度值,正表示顺时针旋转,负表示逆时针旋转;不会改变物体的形状, transform: skew(argument,argument) 倾斜:1/2个参数角度值表示XY;会改变物体的形状。 如图所示: transform: 阅读全文
posted @ 2016-06-07 10:25 Teaism 阅读(132) 评论(0) 推荐(0) 编辑
摘要: <script> (function (doc, win) { var docEl = doc.documentElement, resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize', recalc =  阅读全文
posted @ 2016-05-30 17:37 Teaism 阅读(149) 评论(0) 推荐(0) 编辑
摘要: IE6/IE7下父元素有相对/绝对定位时,子元素在IE6和IE7下overflow:hidden;失效 子元素有相对/绝对定位时,父元素overflow:hidden;失效 解决方法: 在要overflow:hidden;的元素上添加 position:relative 参考:http://www. 阅读全文
posted @ 2016-05-19 18:01 Teaism 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 未知图片宽高时 note:这种居中只是相对于水平居中。 已知图片的宽度 ( 400*400) note: 这个居中包含水平和垂直居中,但前提是已知图片的宽高。 参考资料 http://stackoverflow.com/questions/10830735/center-image-in-div-w 阅读全文
posted @ 2016-05-06 14:21 Teaism 阅读(1939) 评论(0) 推荐(0) 编辑
摘要: 前言 每安装一个记得查看版本,可看是否安装成功。 安装流程: node—ruby—gulp—sass—gulp plugins—config gulpfile.js 安装node 到http://nodejs.cn/(中文版^_^)下载并安装; 如此npm也会一并安装了npm常用命令[http:// 阅读全文
posted @ 2016-05-03 16:05 Teaism 阅读(585) 评论(0) 推荐(0) 编辑
摘要: fillStyle 与 strokeStyle 的区别: fillStyle 表示填充; strokeStyle 表示描边; context.createLinearGradient(x0,y0,x1,y1);(渐变开始点的X坐标,渐变开始点的Y坐标,渐变结束点的X坐标,渐变结束点的Y坐标); 注意 阅读全文
posted @ 2016-04-28 11:11 Teaism 阅读(165) 评论(0) 推荐(0) 编辑
摘要: tab切换 1 /* tab切换--tabmenu 切换的按钮,tabwrap要切换的容器 */ 2 function tab(tabmenu,tabwrap) { 3 $(tabmenu).click(function(){ 4 var index = $(this).index(); 5 $(t 阅读全文
posted @ 2015-09-16 17:52 Teaism 阅读(510) 评论(0) 推荐(0) 编辑