摘要:
<template> <a-breadcrumb separator="/"> <a-breadcrumb-item v-for="item in breadList" :key="item.path" :href="item.path" > <a :href="item.path"> {{ ite 阅读全文
摘要:
https://nodejs.org/zh-cn/download/releases/ 阅读全文
摘要:
react react-router-dom v6 移除了 <NavLink> 的 activeClassName 属性改为: import { NavLink } from 'react-router-dom'; function App() { return ( <> { /* classNam 阅读全文
摘要:
做消息推送有提示音。 由于google默认不播放音频,除非有鼠标,键盘事件触发才播放,所以给页面头部加了一个按钮是否打开消息提示音。触发后开启音频调用音频方法。(当你打开一次音频后,后面消息推送过来在播放音频是可以的) vue中<audio controls ref="audio" src="../ 阅读全文
摘要:
<template> <div> <quill-editor v-model="formData.content" ref="QuillEditor" class="editor" :options="editorOption" @blur="onEditorBlur($event)" @focus 阅读全文
摘要:
vue-cli3 public文件创建static文件保存wordaxios({ method: 'get', responseType: 'blob', url: 'static/json/sm.doc' // word在static文件下 }).then(res=> { console.log( 阅读全文
摘要:
import Vue from 'vue' import VueRouter from 'vue-router' import Home from '../views/Home.vue' import { getCurrentInfo } from '../service/getData' Vue. 阅读全文
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
摘要:
<son v-for="(item, index) in data" :key="index" :ref="item.ref" /> // 子组件加上key值, 调用加上对应的下标,如果还不行加上setTimeout. this.$refs.refSon[index].init() //refSon 阅读全文
摘要:
git stash // 暂存 git stash apply //把暂存拿回去 阅读全文