排序
查询天气API Ajax实例 POST请求
Aip地址 后端地址:http://wthrcdn.etouch.cn/WeatherApi 请求方法:POST或GET 接口参数:city:string xhr.open('POST', 'http://wthrcdn.etouch.cn/WeatherApi?city=' + docume...
NUXT路由锚点
router: { middleware: 'i18n', scrollBehavior: async function(to, from, savedPosition) { if (savedPosition) { return savedPosition; } const findEl...
vue监听界面滚动高度
在methods写一个函数 ChangeOpacity() { // 获取滚动像素 const scrollTop = document.body.scrollTop || document.documentElement.scrollTop // 获取屏幕高度 ...
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='anima...