摘要: var map = { 零: 0, 一: 1, 壹: 1, 二: 2, 贰: 2, 两: 2, 三: 3, 叁: 3, 四: 4, 肆: 4, 五: 5, 伍: 5, 六: 6, 陆: 6, 七: 7, 柒: 7, 八: 8, 捌: 8, 九: 9, 玖: 9, 十: 10, 拾: 10, 百: 1 阅读全文
posted @ 2022-11-24 13:52 Day_Show 阅读(254) 评论(0) 推荐(0) 编辑
摘要: ImagePreview.js const BoxEle = document.createElement('div') const ImgEle = document.createElement('img') function ImagePreviewOpen(url) { $(ImgEle).c 阅读全文
posted @ 2021-04-07 11:25 Day_Show 阅读(455) 评论(0) 推荐(0) 编辑
摘要: import Vue from 'vue' import axios from 'axios'; import { MessageBox, Message } from 'element-ui' import router from "../router"; import store from '. 阅读全文
posted @ 2021-01-04 10:03 Day_Show 阅读(325) 评论(0) 推荐(0) 编辑
摘要: vue 安装 npm i wangeditor --save 创建一个editoritem组件 components/editoritem.vue //目录以自己项目为主 <template lang="html"> <div class="editor"> <div ref="toolbarCon 阅读全文
posted @ 2020-12-23 13:47 Day_Show 阅读(346) 评论(0) 推荐(0) 编辑
摘要: npm安装webpack,怎么装都不行。 我索性把npm源改到到了淘宝镜像 npm config set registry https://registry.npm.taobao.org 再安装就成了 npm install webpack@next webpack-cli -D 阅读全文
posted @ 2020-10-17 12:01 Day_Show 阅读(298) 评论(0) 推荐(0) 编辑
摘要: https://github.com/surmon-china/vue-awesome-swiper/issues/397 可以过去瞅瞅大佬们的解决方式 阅读全文
posted @ 2020-09-14 17:31 Day_Show 阅读(295) 评论(0) 推荐(0) 编辑
摘要: dateFormat(fmt, date) { let ret; const opt = { "Y+": date.getFullYear().toString(), // 年 "m+": (date.getMonth() + 1).toString(), // 月 "d+": date.getDa 阅读全文
posted @ 2020-09-02 14:26 Day_Show 阅读(319) 评论(0) 推荐(0) 编辑
摘要: main.js import VueAwesomeSwiper from 'vue-awesome-swiper' //swiper6版本需要引入的cssimport "swiper/swiper-bundle.css";//降低版本后引入的cssimport 'swiper/dist/css/sw 阅读全文
posted @ 2020-09-01 15:22 Day_Show 阅读(4584) 评论(3) 推荐(2) 编辑
摘要: 接收后端传来的一段 img标签时 天真的以为这样就行了。 <div className={styles.content_img} > {this.props.myCode} </div> 结果没想到在我接收到这段img的时候他已经变成了字符串了emm 所以页面是成了这样。。。。。 然后我在react 阅读全文
posted @ 2019-09-25 16:36 Day_Show 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 找到.umirc.js配置文件 2.在文件中添加theme字段 可以直接在theme中修改样式。 也可以在项目根目录的 config/新建文件进行配置 然后在.umirc.js文件中引入 ant design的样式变量可以去https://github.com/ant-design/ant-desi 阅读全文
posted @ 2019-09-04 10:37 Day_Show 阅读(3896) 评论(0) 推荐(0) 编辑