随笔分类 - vue
vue相关问题
摘要:1.标签 <button v-copy="text">复制文本</button> text是要复制的内容,在data函数中 2.在main.js中注册copy指令 Vue.directive('copy', { bind: function(el, binding) { el.$copy = fun
阅读全文
摘要:直接写到组件里面,使用组件传值返回数据,返回功能还没做 <template> <div class="scan"> <div id="bcid"> <div style="height:40%"></div> <p class="tip">...载入中...</p> </div> <footer>
阅读全文
摘要:1.在命令行中执行:npm install animate.css --save 2.main.js 中: import animated from 'animate.css' // npm install animate.css --save安装Vue.use(animated) 3.使用 <di
阅读全文
摘要:<div id="wrap" :style="{ height: screenHeight + 'px' }"> <div id="main" :style="{ top: nowTop + 'px' }"> <ul id="pageUl" type="circle"> <li id="pageUl
阅读全文
摘要:1.申请key 2.新建文件夹bmpgl.js export function BMPGL(ak) { return new Promise(function(resolve, reject) { window.init = function() { // eslint-disable-next-l
阅读全文
摘要:1.安装 npm install swiper@3 --save-dev2.引入 import Vue from 'vue'import App from './App.vue'import router from './router'import store from './store' impo
阅读全文
摘要:import axios from 'axios' import { Toast } from 'vant' import store from '../store' // 区分开发环境(development)下的测试接口与生产环境(production)下的真实(线上)接口基准路径 const
阅读全文