会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
*的一手好诗
博客园
首页
新随笔
联系
订阅
管理
2018年8月21日
获取图片原始大小js
摘要: naturalWidth
阅读全文
posted @ 2018-08-21 11:07 *的一手好诗
阅读(125)
评论(0)
推荐(0)
2018年8月2日
line-height垂直居中,在移动端有偏差解决办法
摘要: line-height:normal;padding:11px 0;
阅读全文
posted @ 2018-08-02 11:24 *的一手好诗
阅读(716)
评论(0)
推荐(0)
2018年5月31日
安卓微信浏览器location.reload()刷新无效
摘要: function updateUrl(url,key){ var key= (key || 't') +'='; //默认是"t" var reg=new RegExp(key+'\\d+'); //正则:t=1472286066028 var timestamp=+new Date(); if(u
阅读全文
posted @ 2018-05-31 20:30 *的一手好诗
阅读(270)
评论(0)
推荐(0)
2018年5月14日
置空url历史记录
摘要: history.pushState(null, null, document.URL) window.addEventListener('popstate', function () { history.pushState(null, null, document.URL) })
阅读全文
posted @ 2018-05-14 15:14 *的一手好诗
阅读(212)
评论(0)
推荐(0)
2018年5月10日
iframe 同源父子页面通信
摘要: 子页面内容
阅读全文
posted @ 2018-05-10 10:30 *的一手好诗
阅读(967)
评论(0)
推荐(0)
2018年5月8日
scp上传服务器文件
摘要: 上传文件 scp 本地文件目录/test1.txt root@服务器地址:/目录 上传目录 scp -r 本地文件目录 root@服务器地址:/目录
阅读全文
posted @ 2018-05-08 14:24 *的一手好诗
阅读(242)
评论(0)
推荐(0)
svn一次添加所有未添加的文件
摘要: svn st | grep '^\?' | tr '^\?' ' ' | sed 's/[ ]*//' | sed 's/[ ]/\\ /g' | xargs svn add
阅读全文
posted @ 2018-05-08 14:02 *的一手好诗
阅读(727)
评论(0)
推荐(0)
2018年3月23日
vue 去掉#和拼接参数
摘要: 后端配置:https://router.vuejs.org/zh-cn/essentials/history-mode.html
阅读全文
posted @ 2018-03-23 15:19 *的一手好诗
阅读(2278)
评论(0)
推荐(0)
vuex状态管理
摘要: 获取状态this.$store.state.remember 存储状态this.$store.commit('remember', false)
阅读全文
posted @ 2018-03-23 11:44 *的一手好诗
阅读(181)
评论(0)
推荐(0)
2018年3月9日
获取页面iframe里的元素
摘要: // 获取子iframe var _iframe = document.getElementById('id').contentWindow;// 获取iframe里img标签var imgs =_iframe.document.getElementById('Id');
阅读全文
posted @ 2018-03-09 16:47 *的一手好诗
阅读(930)
评论(0)
推荐(0)
下一页
公告