- 博客(6)
- 收藏
- 关注
原创 面试题前端
字符串转数组1、split方法const text = "abc";const chars = text.split('');console.log(chars);//['a', 'b', 'c']```2、展开运算符const text = "abc????";const chars = [ ...text ];console.log(chars);//["a", "b", "c", "????"]3、解构赋值const text = "abc????";const [ ...c
2022-05-10 13:44:58 340
原创 创建个人博客
安装 Gatsby CLI.npm install -g gatsby-cli创建站点gatsby new gatsby-site切换到站点目录cd gatsby-site加参数npm install --ignore-scripts启动开发服务器gatsby develop构建生产版本gatsby build在本地启动生产版本服务器gatsby serve...
2021-04-09 18:33:11 100
原创 2021-03-30
vue实现鼠标悬浮的时候,图片翻转180度,离开变回原来的 <div @mouseenter="pState = 1" @mouseleave="pState = 0"> <img v-if="pState == 1" :src="require('@/assets/yj.png')" /> <img v-else :src="require('@/assets/yj-.png')" alt=""/&
2021-03-30 22:13:34 114
原创 vue创建需要安装的东西
vue创建需要安装的东西创建项目安装vue-router安装elementui安装sass创建项目vue create test安装vue-routernpm install element-ui -S安装elementuinpm install element-ui -S安装sassnpm install node-sass@4.14.1npm install sass-loader@7.3.1 --save-dev //安装指定版本...
2021-03-30 21:00:53 203
原创 layui图片上传、预览、删除
layui图片上传、预览、删除、 <div class="layui-upload"> <button type="button" id="test2" class="layui-btn tj">多图片上传</button> <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;width: 88%">
2021-02-07 09:23:15 1238
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人