vue
Frontend_Li
这个作者很懒,什么都没留下…
展开
-
Vuex如何使用(一)—— 什么是Vuex?
如果你是新手(前提:您了解过vue,否则可能有些吃力) 或 不知道如何上手,请您看下去…什么是Vuex?定义vuex是专门负责 Vue.js 开发中的状态管理。vuex可以集中 存储、管理 应用下所有组件的状态什么是状态管理?首先咱们先看段代码<template> <!-- view --> <div class="demo-bo...原创 2019-12-17 15:46:47 · 474 阅读 · 0 评论 -
vue中directives的用法
vue中directives的用法关于 vue 中 directives 的用法问题,详细可以参考vue官方对directives的解释当前文章主要讲述directives怎么用,directives做权限按钮的功能1. directives 怎么用directives 在生命周期内用export default { data() { ret...原创 2018-06-26 18:18:04 · 88647 阅读 · 2 评论 -
vue-cli3.0如何引入jquery
const webpack = require('webpack')const path = require('path');function resolve(dir) { return path.join(__dirname, dir)}module.exports = { baseUrl: './', devServer: { host: '...原创 2018-11-01 15:38:59 · 9158 阅读 · 2 评论 -
vue中$event的用法——如何获取当前兄弟元素,子元素,父元素
<template> <div> <button @click="getEvent($event)">点击</button> </div></template><script> export default { data(){ return{ ...原创 2018-11-03 18:54:35 · 25000 阅读 · 0 评论