摘要:
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 阅读全文
摘要:
ImagePreview.js const BoxEle = document.createElement('div') const ImgEle = document.createElement('img') function ImagePreviewOpen(url) { $(ImgEle).c 阅读全文
摘要:
import Vue from 'vue' import axios from 'axios'; import { MessageBox, Message } from 'element-ui' import router from "../router"; import store from '. 阅读全文
摘要:
vue 安装 npm i wangeditor --save 创建一个editoritem组件 components/editoritem.vue //目录以自己项目为主 <template lang="html"> <div class="editor"> <div ref="toolbarCon 阅读全文
摘要:
npm安装webpack,怎么装都不行。 我索性把npm源改到到了淘宝镜像 npm config set registry https://registry.npm.taobao.org 再安装就成了 npm install webpack@next webpack-cli -D 阅读全文
摘要:
https://github.com/surmon-china/vue-awesome-swiper/issues/397 可以过去瞅瞅大佬们的解决方式 阅读全文
摘要:
dateFormat(fmt, date) { let ret; const opt = { "Y+": date.getFullYear().toString(), // 年 "m+": (date.getMonth() + 1).toString(), // 月 "d+": date.getDa 阅读全文
摘要:
main.js import VueAwesomeSwiper from 'vue-awesome-swiper' //swiper6版本需要引入的cssimport "swiper/swiper-bundle.css";//降低版本后引入的cssimport 'swiper/dist/css/sw 阅读全文
摘要:
接收后端传来的一段 img标签时 天真的以为这样就行了。 <div className={styles.content_img} > {this.props.myCode} </div> 结果没想到在我接收到这段img的时候他已经变成了字符串了emm 所以页面是成了这样。。。。。 然后我在react 阅读全文
摘要:
找到.umirc.js配置文件 2.在文件中添加theme字段 可以直接在theme中修改样式。 也可以在项目根目录的 config/新建文件进行配置 然后在.umirc.js文件中引入 ant design的样式变量可以去https://github.com/ant-design/ant-desi 阅读全文