会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
迈向好运
还有头发!还能学!
博客园
首页
新随笔
联系
订阅
管理
2022年1月5日
jquery遍历DOM树
摘要: 向上遍历DOM树 方法 返回 parent() 被选元素的直接父元素 parents() 被选元素的所有祖先元素,包括文档的根元素(html) eg: parents('ul') 被选元素的所有祖先ul元素 parentsUntil('参数') 介于两个给定元素之间的所有祖先元素 eg: $("sp
阅读全文
posted @ 2022-01-05 11:14 迈向好运
阅读(89)
评论(0)
推荐(0)
2021年7月19日
el-upload上传/预览时dialog宽自适应
摘要: 使用element插件中的el-upload上传一张图片 el-dialog预览时它的宽度需要根据图片的宽度而变化 <el-upload ref="upload" action="" :http-request="uploadImages" :on-remove="handleRemove" :on
阅读全文
posted @ 2021-07-19 10:58 迈向好运
阅读(1398)
评论(0)
推荐(0)
2021年6月1日
token登录、登出、beforeEach
摘要: 1.token登录分析:(客户端与服务端) 用户在登录页面输入用户名和密码进行登录,服务器验证通过之后生成该用户的token并返回; 由于除登录外的其他API接口都必须登录之后才能访问,它们需要携带token发送请求;所以客户端需要存储该token; token在当前网页打开期间有效,所以将toke
阅读全文
posted @ 2021-06-01 10:26 迈向好运
阅读(1010)
评论(0)
推荐(0)
2020年12月13日
git命令
摘要: 近期关联一个项目时执行的git命令 git init 初始化 git remote 显示远程仓库 (此时什么都没有) git remote add origin 地址 提交到 Github添加远程版本库 git remote 会显示origin git push origin master 将本地的
阅读全文
posted @ 2020-12-13 21:05 迈向好运
阅读(77)
评论(0)
推荐(0)
2020年12月7日
transition不支持display属性
摘要: transition不支持display属性,解决: 1.opacity和visibility,但页面会有留白 .div2 { width: 100px; height: 100px; background: blue; transition: all 2s; visibility: hidden;
阅读全文
posted @ 2020-12-07 09:18 迈向好运
阅读(136)
评论(0)
推荐(0)
2020年8月17日
fieldset legend标签
摘要: 需要实现的效果 用到了俩HTML标签fieldset和legend标签 <fieldset>标签会在相关表单元素周围绘制边框 <legend>标签为<fieldset>元素定义标题 <fieldset class="box"> <legend>标题</legend> </fieldset> //cs
阅读全文
posted @ 2020-08-17 17:00 迈向好运
阅读(187)
评论(0)
推荐(0)
2020年8月7日
nuxt 请求数据 切换
摘要: 在api下创建一个新的文件如test.js,里面放所有的请求 const baseURL = 'https://xxx.com/' import axios from 'axios' import qs from 'qs'; export function tabdatas(ty=1) { retu
阅读全文
posted @ 2020-08-07 14:47 迈向好运
阅读(826)
评论(0)
推荐(0)
2020年8月4日
搜索后关键字标红
摘要: 搜索框: <input type="text" v-model="input_cont" placeholder="请输入搜索关键字" /> 其次,要显示的数据使用v-html绑定方法名传递两个参数:(需要标红的数据,搜索框的内容) <div> <span v-html="redKeyword(it
阅读全文
posted @ 2020-08-04 14:26 迈向好运
阅读(567)
评论(0)
推荐(0)
2020年5月12日
vue移动端适配rem
摘要: 移动浏览器兼容 <meta name="viewport" content="width=device-width",initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0> 引入js文件 (function(
阅读全文
posted @ 2020-05-12 10:17 迈向好运
阅读(1432)
评论(0)
推荐(0)
2020年3月26日
react 、请求、使用
摘要: 1.创建一个ajax.js import axios from 'axios' export default function ajax(url = '', data = {}, type = 'GET') { if (type 'get') { return axios({ method: "ge
阅读全文
posted @ 2020-03-26 23:00 迈向好运
阅读(1707)
评论(0)
推荐(2)
下一页
公告