2022年5月26日
摘要: 1. 安装淘宝镜像 npm install cnpm -g 2. 安装express cnpm install express --save 3. 安装express生成器 cnpm install express-generator -g 4. 生成项目 express --view=pug my 阅读全文
posted @ 2022-05-26 13:57 Yseraaa 阅读(30) 评论(0) 推荐(0) 编辑
2021年11月23日
摘要: <template> <div :id="id" :style="{width: `${width}`, height: `${height}`}" ></div> </template> <script> let echarts = require('echarts/lib/echarts') r 阅读全文
posted @ 2021-11-23 16:54 Yseraaa 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 1. 首先安装oss npm install ali-oss --save 2. // template部分 <Upload ref="upload" type="drag" :default-file-list="file" action="" :before-upload="handleBefo 阅读全文
posted @ 2021-11-23 13:39 Yseraaa 阅读(690) 评论(0) 推荐(0) 编辑
2021年10月22日
摘要: 1. 设置动态根字号大小,/public/phone-adapt.js,在index.html中引入 (function (doc, win) { const docEl = win.document.documentElement; const resizeEvt = 'orientationch 阅读全文
posted @ 2021-10-22 13:21 Yseraaa 阅读(364) 评论(0) 推荐(0) 编辑
2021年10月21日
摘要: <template> <div class="content"> <div :class="[isOpen ? 'text' : 'text m']" ref="text"> <div v-if="isShow"> <label class="btn" @click="open" v-show="! 阅读全文
posted @ 2021-10-21 16:15 Yseraaa 阅读(216) 评论(0) 推荐(0) 编辑
2021年10月9日
摘要: componentDidMount() { this.getWxConfig() } getWxConfig () { // 请求后台接口拿到 data信息 wx.config({ debug: false, appId: data.appId, // 必填,公众号的唯一标识 timestamp: 阅读全文
posted @ 2021-10-09 09:34 Yseraaa 阅读(608) 评论(0) 推荐(0) 编辑
2021年9月28日
摘要: 1. 这里使用react-router-config配置静态路由 npm install react-router-dom--save npm install react-router-config --save "react-router-config": "^5.1.1", "react-rou 阅读全文
posted @ 2021-09-28 14:16 Yseraaa 阅读(681) 评论(0) 推荐(0) 编辑
摘要: 1. 安装 mobx mobx-react npm install mobx mobx-react --save "mobx": "^6.3.3", "mobx-react": "^7.2.0" 2. 安装 @babel/plugin-proposal-decorators 装饰器 npm inst 阅读全文
posted @ 2021-09-28 13:59 Yseraaa 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 在不使用npm run eject暴露配置的情况下 1. 安装 node-sass sass-resources-loader npm install node-sass sass-resources-loader --save "node-sass": "^6.0.1", "sass-resour 阅读全文
posted @ 2021-09-28 13:46 Yseraaa 阅读(327) 评论(0) 推荐(0) 编辑
2021年9月26日
摘要: 1. 微信环境下长按识别二维码不能将二维码图片作为div的背景,要用img标签才可以识别。 2. 移动端微信h5使用rem为单位、flex布局时,使用position: relative定位在ios和安卓下会出现位置不一致,要改为px单位,如果有更好的办法欢迎评论。 3. 处理底部安全距离 // 在 阅读全文
posted @ 2021-09-26 10:31 Yseraaa 阅读(149) 评论(0) 推荐(0) 编辑