会员
周边
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
do more
博客园
首页
新随笔
联系
订阅
管理
2018年12月23日
[nuxt] Error while initializing app TypeError: Cannot call a class as a function
摘要: 不能把创建对象插件的ssr关掉
阅读全文
posted @ 2018-12-23 16:39 DalyYang
阅读(1763)
评论(0)
推荐(0)
编辑
nuxt generate 报错 window is not defined
摘要: window id not defined 这是因为首先使用node服务端进渲染的,而node端不存在window对象 官方提供方法是在plugins里设置ssr 但是依然报错,后来找到了真正的原因 在SSR中,created生命周期在服务端执行,把需要执行系统对象的代码放到mounted生命周期里
阅读全文
posted @ 2018-12-23 15:35 DalyYang
阅读(1754)
评论(0)
推荐(0)
编辑
2017年12月5日
vue 路由跳转取不到params参数
摘要: 使用params时,不能使用path,应使用name跳转, 例:
阅读全文
posted @ 2017-12-05 11:47 DalyYang
阅读(7284)
评论(1)
推荐(0)
编辑
css 改变输入框光标颜色
摘要: https://developer.mozilla.org/en-US/docs/Web/CSS/caret-color
阅读全文
posted @ 2017-12-05 11:43 DalyYang
阅读(899)
评论(0)
推荐(0)
编辑
2016年11月28日
面向对象
摘要: 对象字面量
阅读全文
posted @ 2016-11-28 18:22 DalyYang
阅读(134)
评论(0)
推荐(0)
编辑
2016年3月17日
列表翻转效果
摘要: } </script> </body></html>
阅读全文
posted @ 2016-03-17 16:23 DalyYang
阅读(145)
评论(0)
推荐(0)
编辑
2015年7月6日
text-rendering
摘要: https://developer.mozilla.org/en-US/docs/Web/CSS/text-rendering
阅读全文
posted @ 2015-07-06 16:05 DalyYang
阅读(100)
评论(0)
推荐(0)
编辑
2015年6月30日
页面做动画卡顿
摘要: 页面做动画卡顿。尤其是小米,解决:transform:translate3d(x,y,z);会让GPU加速渲染。
阅读全文
posted @ 2015-06-30 15:58 DalyYang
阅读(187)
评论(0)
推荐(0)
编辑
页面滑动不流畅
摘要: 有的时候手机页面的滑动很不流畅,很涩。解决代码:overflow-y: auto;-webkit-overflow-scrolling: touch;
阅读全文
posted @ 2015-06-30 15:42 DalyYang
阅读(311)
评论(0)
推荐(0)
编辑
隐藏input点击时的边框
摘要: -webkit-tap-highlight-color:rgba(0,0,0,0);在移动端,比input{outline:none;}有用。
阅读全文
posted @ 2015-06-30 15:34 DalyYang
阅读(229)
评论(0)
推荐(0)
编辑
公告