Vue
酸奶(●'◡'●)
这个作者很懒,什么都没留下…
展开
-
Vue postcss-px-to-viewport 自适应
postcss-px-to-viewport将px单位转换为视口单位(vw,vh,vmin,vmax)的PostCSS 插件。链接:https://github.com/evrone/postcss-px-to-viewport安装npm 安装npm install postcss-px-to-viewport --save-devyarn 安装yarn add -D postcss-px-to-viewport配置新建postcss.config.js文件,文件与package原创 2021-01-19 20:11:19 · 448 阅读 · 0 评论 -
vue实现中英文切换
1、通过npm安装vue-i18nnpm install vue-i18n --save-dev2、创建cn.js和en.js文件//cn.jsmodule.exports = { txt: { msg: '生活的道路一旦选定,就要勇敢知地走到底,决不回头。' }}//en.jsmodule.exports = { txt: { msg: 'Once the road of life is chosen, we should go to the end bra原创 2020-10-20 11:52:54 · 947 阅读 · 0 评论