- 昵称:51助手
- 博龄:6年5个月28天
- 粉丝:122
- 关注:108
- +关注
搜索
文章分类
博客档案
[Intervention] Ignored attempt to cancel a touchend event with cancelable=false, for example because scrol
摘要:大概意思呢就是:一个有设置cancelable=false的touchmove事件和其他某个滚动的操作冲突了。解决方法在滚动标签加个css样式 touch-action: none;或全局加 *{touch-action: none;}
Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-render
摘要:意思是,父组件传递给子组件的参数,子组件不能动态的修改此参数props:{ active:false},this.active = true; //这样写就会报错
vue 头像裁剪
摘要:1 安装 vue-croppernpm install vue-cropper2 在需要调用的页面引入import Vue from 'vue' import VueCropper from 'vue-croppe
vue this.$refs的使用
摘要:一般来讲,获取DOM元素,需要使用document.querySelector('#input1')方法去获取dom节点,然后再获取input1的值。但是使用了ref绑定之后,我们就不需要再获取dom节点了,可以直接在上面的input上绑定input1,然后$refs里面调用就行。在JavaScript里面通过this.$refs.input
vue 微信分享 weixin-js-sdk
摘要:vue前端1 安装微信sdk weixin-js-sdknpm install weixin-js-sdk --save2 安装jquery 我用的是ajax发送请求npm install jquery --save我封装好的代码我放
vue滚动条事件,获取元素到底部距离
摘要:网上大部分vue的滚动条操作是监听dom实现,我是用@scroll实现首先有滚动条的div一定要设固定高度,然后overflow:auto;出现滚动条passive是使滚动更加流畅,减少卡顿<div @scroll.passive="getScroll($event)" style="height:10
tp5 当更新数库据影响行数为0时,事务没有回滚
摘要:tp5 sql语句没有出错,不是执行回滚解决方法,在每个sql数据执行返回结果,自已判断,返回错误结果// 启动事务 Db::startTrans(); try{ $mid = Db::name('goods_merchant')->insertG
vue 安装sortablejs 移动端拖动排序插件
摘要:插件地址:http://www.sortablejs.com/index.html vue 安装npm install sortablejs --save-devmounted() { $('.van-upload
Errors while compiling. Reload prevented.
摘要:百度查了很多方法都不对,仔细查看代码,发现模版html内容只能由一个div包含否则就会报错<template> <div class="html"> html内容
Unknown custom element: - did you register the component correctly? For recursive components, make sure t
摘要:vue 在使用vant form表单组件时报错,查看文档是没错的报错的大至意思是找不到<van-field> 这个组件解决方法:引入Field组件import {Field} from 'vant'Vue.use(Field);