父子组件通信,子组件进行watch同步修改

前端 

<div :parenData ="datas"></div> <script>data(){ return{ datas:"1" }},methods:{ changeData(){ this.datas=

定时器在页面刷新时全部销毁

前端 

mounted: function () { let listInfo = setInterval(() => { setTimeout(() => { this.getDataList(); }, 0); }, 5 * 60 * 100

vue快速通过axios请求同一个http时发生数据错误

前端 

import axios from 'axios'import { Message } from 'element-ui'import route from '@/router'const duration = 2 * 1000let preDate

使用js获取当前页面的url

前端 

url = window.location.href; /* 获取完整URL /alert(url); / http://127.0.0.1:8020/Test/index.html#test?name=test */url = window.location.pathname; /* 获取文件路径

position中fixed和absolute区别

前端 

position中fixed和absolute区别

登录页面自动填充背景色样式调整

前端 

/deep/ input:-webkit-autofill , textarea:-webkit-autofill, select:-webkit-autofill { -webkit-text-fill-color: #fff !important; -webkit-box-shad

tooltip显示超出div范围

前端 

tooltip: { trigger: "axis", // position: ['50%', '50%'], position: function(point, params, do

滚动table表格

前端 

package.json:"vue-seamless-scroll": "^1.1.23",页面:import vueSeamlessScroll from "vue-seamless-scroll";

路由切换时,图片的url接受的流多次加载

前端 

beforeDestroy() {//清除直播流this.cleanMedia(“playUrl1”);},cleanMedia(id) {let playItem = document.getElementById(id);playItem.setAttribute(“src”, “”);},

vue初始化项目出现unable to access ‘https://github.com/nhn/raphael.git/’

前端 

解决方法:这个错的原因是 tui-editor 引起的,1、先删除 package.json 的 tui-editor 配置项运行 npm i 或者 yarn install 会正常编译。2、在手动安装 tui-editornpm install --save tui-editor————————