- 昵称:51助手
- 博龄:3年7个月5天
- 粉丝:122
- 关注:108
- +关注
搜索
文章分类
博客档案
vue 目录结构详解
摘要:项目简介基于 vue.js 的前端开发环境,用于前后端分离后的单页应用开发,可以在开发时使用 ES Next、scss 等最新语言特性。项目包含:基础库: vue.js、vue-router、vuex、whatwg-fetch编译/打包工具:webpack、babel、node-sass单元测试工具:karma、mocha、sinon-chai本地服务器:e
uniapp [微信小程序开发者工具] - initialize
摘要:[微信小程序开发者工具] x initialize开启服务端口搞定
[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
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内容