摘要: <template> <div class="hello"> <div class="toggle" @click="fullScreen = !fullScreen" v-show="fullScreen">toggle</div> <transition name="normal" @enter 阅读全文
posted @ 2020-02-13 17:31 ladybug7 阅读(150) 评论(0) 推荐(0)
摘要: <template> <div class="a"> <div class="basic" ref="ba">基本元素</div> <chil ref="ccd"></chil> </div> </template> <script> import Chil from '.../chil.vue' 阅读全文
posted @ 2020-02-11 10:39 ladybug7 阅读(3689) 评论(0) 推荐(0)
摘要: const express = require('express') const axios = require('axios') const bodyParser = require('body-parser') const app = express() const apiRoutes = ex 阅读全文
posted @ 2020-02-10 20:21 ladybug7 阅读(616) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>图片的onload 阅读全文
posted @ 2020-02-09 11:41 ladybug7 阅读(234) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-02-08 14:41 ladybug7 阅读(906) 评论(0) 推荐(0)
摘要: 1. 2. 3. 4. 5. 6. 7.“动态路由”和“编程式路由”参数的接收方式:路由的参数 页面之间跳转的参数 阅读全文
posted @ 2020-02-06 19:53 ladybug7 阅读(256) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-02-06 14:52 ladybug7 阅读(97) 评论(0) 推荐(0)
摘要: 使用setTimeout将touchmove等事件延时,可以提高性能。 在搜索功能中也可以使用函数节流 export function debounce(func, delay = 200) { let timer return function (...args) { if (timer) { c 阅读全文
posted @ 2020-02-05 14:29 ladybug7 阅读(126) 评论(0) 推荐(0)
摘要: 如果项目里没有webpack.config.js这个文件,webpack会使用它本身内置在源码里的配置项。 webpack.config.js这个配置名称可以通过指令修改 npx webpack --config xxx.js 或者 npm webpack --config xxx.js 阅读全文
posted @ 2020-02-05 14:28 ladybug7 阅读(250) 评论(0) 推荐(0)
摘要: 注释: options:{ importLoaders: 2 } 解决样式文件里使用@import 'xxx.xxx' 的问题 module: { rules: [{ test: /\.scss$/, use: [ 'style-loader', { loader: 'css-loader', op 阅读全文
posted @ 2020-02-04 16:11 ladybug7 阅读(2345) 评论(0) 推荐(0)