上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: Math.max方法可以求出给定参数中最大的数。 Math.max('1','2','3.1','3.2');//3.2 Math.min(1,0,-1);//-1 但如果是数组,就不能这样调用了。此时就用到了apply方法。Function.apply()是JS的一个OOP特性,一般用来模拟继承和 阅读全文
posted @ 2020-05-12 16:30 闪光123 阅读(203) 评论(0) 推荐(0) 编辑
摘要: //正则 let cash = '1234567890' cash.replace(/\B(?=(\d{3})+(?!\d))/g, ',');//"1,234,567,890" //非正则的优雅实现 function formatCash(str) { return str.split('').r 阅读全文
posted @ 2020-05-12 16:26 闪光123 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 记录一下所用的插件 1. auto close tag 自动关闭标签,在开始标记的结束括号中键入后,将自动插入结束标记 2. Auto Comment Blocks 自动插入注释行 3. Auto Rename Tag 自动重命名配对的HTML / XML标记 4. Auto Complete Ta 阅读全文
posted @ 2020-05-12 11:43 闪光123 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 1.官网下载:https://nodejs.org/zh-cn/download/ 2.除了安装目录,一路默认安装 3.输入cmd然后回车,进入dos命令行,测试 node -v 和 npm -v 4.配置环境变量:node安装目录追加到用户环境变量path里,输入npm -v测试 5.把配置到别的 阅读全文
posted @ 2020-05-12 11:23 闪光123 阅读(4857) 评论(0) 推荐(0) 编辑
摘要: import { Block, View, Picker, Text, Image } from '@tarojs/components'; import Taro from '@tarojs/taro'; import withWeapp from '@tarojs/with-weapp'; im 阅读全文
posted @ 2020-01-03 15:41 闪光123 阅读(632) 评论(0) 推荐(0) 编辑
摘要: 突然忘了git rebase后的操作,记下来,免得忘了 git rebase git add . git rebase --continue ... git push --force 阅读全文
posted @ 2019-12-23 16:21 闪光123 阅读(1251) 评论(0) 推荐(0) 编辑
摘要: 1、!important,加在样式属性值后,权重值为 100002、内联样式,如:style=””,权重值为10003、ID选择器,如:#content,权重值为1004、类,伪类和属性选择器,如: content、:hover 权重值为105、标签选择器和伪元素选择器,如:div、p、:befor 阅读全文
posted @ 2019-11-25 15:51 闪光123 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 1、git log :查看一下分支上已提交的信息 2、git reset --hard acfb7f94e2e1bc34a9825947758177cbd7e70965(要回退到的版本) :回退到之前的版本 3、git push origin 10-changeUrl(回退的分支) --force 阅读全文
posted @ 2019-11-04 14:12 闪光123 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 强制每个单词的首字母转换为大写。text-transform: capitalize;强制所有字符被转换为大写 text-transform: uppercase;强制所有字符被转换为小写 text-transform: lowercase;阻止所有字符的大小写被转换 text-transform: 阅读全文
posted @ 2019-10-29 10:52 闪光123 阅读(380) 评论(0) 推荐(0) 编辑
摘要: -webkit-user-select: none;-ms-user-select: none;-moz-user-select: none;-khtml-user-select: none;user-select: none; 让元素不能被选中。 阅读全文
posted @ 2019-10-29 10:46 闪光123 阅读(135) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 下一页