摘要: 先附上插件官网 vue-i18n中文官网 我们的vue项目需要支持多语言时,可以使用这个插件 安装插件教程在官网可以找到 代码结构可以如下 zh.js 查看代码 export default { login: { Login: "登陆", }, }; index.js 的代码如下 这一部分在elem 阅读全文
posted @ 2022-01-11 16:10 xxdw8 阅读(193) 评论(0) 推荐(0) 编辑
摘要: node 总是在不断的升级,以前老项目在运行时可能会报错 我遇到了一个 PostCSS received undefined instead of CSS string 查了下可能是node-sass的版本问题,此时要么升级包要么降级一下node的环境, 然后想着以前看到过node包管理器,查后,有 阅读全文
posted @ 2021-12-16 16:03 xxdw8 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 查到资料 可以绑定在一个多选上,校验此绑定的值 阅读全文
posted @ 2019-07-25 17:35 xxdw8 阅读(2958) 评论(0) 推荐(0) 编辑
摘要: The injectGlobal API was removed and replaced by createGlobalStyle in styled-components v4. 原文链接 官方链接 createGlobalStyle 具体使用 1 import { createGlobalSt 阅读全文
posted @ 2019-05-17 15:53 xxdw8 阅读(1020) 评论(0) 推荐(0) 编辑
摘要: ios 移动端,当你触及到可以左右滑动部分,进行上下滑动操作时,会导致上下滑动粘滞卡顿的问题 mdn:https://developer.mozilla.org/zh-CN/docs/Web/CSS/-webkit-overflow-scrolling https://segmentfault.co 阅读全文
posted @ 2019-04-14 22:36 xxdw8 阅读(272) 评论(0) 推荐(0) 编辑
摘要: video标签动态获取播放链接是出现 Error: $interpolate:interr Interpolation Error Error: $sce:insecurl Processing of a Resource from Untrusted Source Blocked Descript 阅读全文
posted @ 2019-03-25 13:23 xxdw8 阅读(452) 评论(0) 推荐(0) 编辑
摘要: 问题情况 搜狗等,兼容模式下,以前前端写的点击事件的代码没有, 后来一看是因为兼容模式为9,导致点击事件失效 解决办法,步骤 1,处理绑定事件兼容问题 ie低版本绑定事件只支持attactevent,所以先写个兼容的事件绑定函数 2, 3,这些改完后,发现回到ie内核下还是需要手动修改一次文档模式, 阅读全文
posted @ 2019-02-25 16:44 xxdw8 阅读(376) 评论(0) 推荐(0) 编辑
摘要: https://cli.vuejs.org/guide/ http://vuejs-templates.github.io/webpack/ 阅读全文
posted @ 2018-07-14 18:04 xxdw8 阅读(1453) 评论(0) 推荐(0) 编辑
摘要: vue的插件,组件都可以按照这种方式添加 官方文档 https://cn.vuejs.org/v2/guide/plugins.html 做个记录用 阅读全文
posted @ 2018-07-14 13:37 xxdw8 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 使用async函数,在webpack打包时报错 babel-polyfill is required. You must also install it in order to get async/await working. 需要加入babel-polyfill 这里有个小插曲,经测试发现yarn 阅读全文
posted @ 2018-07-14 00:39 xxdw8 阅读(2900) 评论(0) 推荐(0) 编辑