logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

git 查看当前用户

查看当前登录用户:git config user.name// 获取当前登录的用户git config user.email// 获取当前登录用户的邮箱

#git
JavaScript 获取当前时间 —— 年月日时分秒

function getNowTime () {let now = new Date();let year = now.getFullYear(); //获取完整的年份(4位,1970-????)let month = now.getMonth() + 1; //获取当前月份(0-11,0代表1月)let today = now.getDate(); //获取当前日(1-31)let hour =

#javascript#开发语言#ecmascript
css linear-gradient 设置背景颜色渐变

CSS3 渐变能够让背景颜色在两个或多个颜色之间平滑过渡。

文章图片
#css#javascript#html
yarn 安装依赖报错 error An unexpected error occurred: https://registry.yarnpkg.com“

yarn 安装依赖报错 error An unexpected error occurred: https://registry.yarnpkg.com“

#javascript
The engine “node“ is incompatible with this module. Expected version 问题解决办法

The engine “node“ is incompatible with this module. Expected version 问题解决办法

#前端
JavaScript foreach 方法跳出循环

通常,在 for循环中跳出循环可以用 break或者 continue 来跳出循环。break:跳出循环;continue:跳过当次循环。而有时候需要在 foreach 中跳出循环,该怎么做呢?forEach() 方法用于调用数组的每个元素,并将元素传递给回调函数。对于空数组不会执行回调函数。回调函数的参数 :function(currentValue, index, arr)currentVal

#javascript#前端#es6
css3 flex 布局实现平均分配元素

css3 flex 布局实现平均分配元素

文章图片
#css3#css#html
vue 不是内部或外部命令

vue 报错:vue 不是内部或外部命令

#javascript
css flex布局 —— 项目属性 flex-shrink

css flex布局 —— 项目属性 flex-shrink

#css#css3#html
暂无文章信息