Vue共6篇
学习Vue的笔记
Vue监听关闭页面-瘦子-瘦子Blog-瘦子LOG

Vue监听关闭页面

Vue监听关闭页面
瘦子的头像-瘦子-瘦子Blog-瘦子LOG瘦子7个月前
0990
Nuxt.js使用 Animate.css-瘦子-瘦子Blog-瘦子LOG

Nuxt.js使用 Animate.css

安装Animate.css $ npm install animate.css --save $ yarn add animate.css 引入Animate.css <script> import 'animate.css'; </script> 使用Animate.css <h1 class='animate__...
瘦子的头像-瘦子-瘦子Blog-瘦子LOG瘦子1年前
0320
NUXT路由锚点-瘦子-瘦子Blog-瘦子LOG

NUXT路由锚点

router: { middleware: 'i18n', scrollBehavior: async function(to, from, savedPosition) { if (savedPosition) { return savedPosition; } const findEl = async (hash, x = 0) => { retu...
瘦子的头像-瘦子-瘦子Blog-瘦子LOG瘦子2年前
02727
vue监听界面滚动高度-瘦子-瘦子Blog-瘦子LOG

vue监听界面滚动高度

在methods写一个函数 ChangeOpacity() { // 获取滚动像素 const scrollTop = document.body.scrollTop || document.documentElement.scrollTop // 获取屏幕高度 const vmHeight = window.innerH...
瘦子的头像-瘦子-瘦子Blog-瘦子LOG瘦子2年前
03241
VUE自定义指令-瘦子-瘦子Blog-瘦子LOG

VUE自定义指令

<!DOCTYPE html> <html> <head> <meta charset='utf-8'> <title>Vue</title> <script src='../js/vue.js'></script> </head> <body> <div id='app'> <h2>{...
瘦子的头像-瘦子-瘦子Blog-瘦子LOG瘦子2年前
01540
使用Canvas播放视频-瘦子-瘦子Blog-瘦子LOG

使用Canvas播放视频

<video class='video' autoplay playsinline webkit-playsinline loop muted x5-video-player-type='h5' x5-playsinlin='true' v-show='false' id='video1' > <source src='@/assets/mp4/...
瘦子的头像-瘦子-瘦子Blog-瘦子LOG瘦子2年前
34710