会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
huihuihero
From zero to hero
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
19
20
21
22
23
24
25
26
27
···
29
下一页
2019年11月26日
js互换数组元素位置(可用于表格上下移动更改排序)
摘要: 两个元素换位子; 置顶移动 向上移动一格 向下移动一格 具体例子见 中的“动态添加一组可编辑框”
阅读全文
posted @ 2019-11-26 17:14 huihuihero
阅读(3328)
评论(0)
推荐(0)
2019年11月21日
vue中使用keepAlive(缓存页面&记忆上次浏览位置)及使用后生命周期的改变
摘要: 以下部分内容转自博客(另外配有自己见解):https://www.cnblogs.com/nokelong/p/8116631.html ###使用keepAlive缓存页面,一可以减少服务器请求次数,二则可以在用户返回上一页后记忆到上次浏览位置(ios端微信浏览器不适用,不兼容,需要另行配置:见例
阅读全文
posted @ 2019-11-21 14:28 huihuihero
阅读(8294)
评论(0)
推荐(0)
2019年11月15日
vue搭配antD-Vue开发项目(一)
摘要: ####安装antd-vue并按需加载(详见 https://www.antdv.com/docs/vue/use-with-vue-cli-cn/ ) 注:antd-vue2.0+和antd-vue3.0+都是只支持vue3.0+。只有ant-vue1.0+才支持vue2.0+ 1、yarn ad
阅读全文
posted @ 2019-11-15 13:19 huihuihero
阅读(16930)
评论(0)
推荐(0)
2019年11月6日
vscode使用
摘要: vscode vscode访问git:下载devServer,ctrl+shift+p调出命令框,搜索devServer:start 在http://localhost/admin/config/xxx.html (http://可省略)查看 vscode设置中文: 下载Chinese Langua
阅读全文
posted @ 2019-11-06 15:24 huihuihero
阅读(536)
评论(0)
推荐(0)
2019年11月5日
vue移动端项目经验(三)
摘要: ####登录成功后跳转回上一页而非主页 评论页: sendComment(){ axios.get(`${common.commentapi}/comment?aid=${this.aid}`).then(res=>{ if(res.data.code==200){ this.$toast({ me
阅读全文
posted @ 2019-11-05 13:38 huihuihero
阅读(514)
评论(0)
推荐(0)
2019年10月17日
js跳转链接的几种方式
摘要: 1、跳转链接,当前窗口打开 2、跳转链接,新窗口打开 3、跳转链接 返回上一页
阅读全文
posted @ 2019-10-17 17:38 huihuihero
阅读(690)
评论(0)
推荐(0)
2019年10月10日
vue移动端项目经验(二)
摘要: 视频插件vue video player的使用及注意事项 视频插件xgplayer(西瓜播放器)的使用及注意事项 更多详情见官方文档:http://h5player.bytedance.com/ 贴代码: 1、安装包:npm install xgplayer 2、代码部分: //1、标签,必须要有
阅读全文
posted @ 2019-10-10 16:49 huihuihero
阅读(2863)
评论(0)
推荐(0)
2019年10月9日
css项目知识小汇总
摘要: 背景图片 calc的使用 span标签里文字换行,但数字字母不自动换行 字体描边 字体间距 字体两边对齐 首行缩进 关于:nth child() 选择器 包裹图片的父级盒子边缘多出一部分(或者说图片本身自带空隙怎么解决) 下划线 li的点 关于flex:1和flex:auto的区别(IE8 不支持f
阅读全文
posted @ 2019-10-09 16:55 huihuihero
阅读(243)
评论(0)
推荐(0)
浏览器滚动条样式自定义(兼容火狐)
摘要: ####滚动条距离顶部的距离 let ele=document.getElementById("demo") console.log(ele.scrollTop) ####滚动条距离底部的距离 let ele=document.getElementById("demo") console.log(e
阅读全文
posted @ 2019-10-09 12:10 huihuihero
阅读(3760)
评论(0)
推荐(0)
媒体查询
摘要: 移动端使用媒体查询兼容ipad等大屏幕设备
阅读全文
posted @ 2019-10-09 09:35 huihuihero
阅读(263)
评论(0)
推荐(0)
上一页
1
···
19
20
21
22
23
24
25
26
27
···
29
下一页
公告