排序
查询天气API Ajax实例 POST请求
Aip地址 后端地址:http://wthrcdn.etouch.cn/WeatherApi 请求方法:POST或GET 接口参数:city:string xhr.open('POST', 'http://wthrcdn.etouch.cn/WeatherApi?city=' + document.querySelect...
NUXT路由锚点
router: { middleware: 'i18n', scrollBehavior: async function(to, from, savedPosition) { if (savedPosition) { return savedPosition; } const findEl = async (hash, x = 0) => { retu...
vue监听界面滚动高度
在methods写一个函数 ChangeOpacity() { // 获取滚动像素 const scrollTop = document.body.scrollTop || document.documentElement.scrollTop // 获取屏幕高度 const vmHeight = window.innerH...
JSTL引入及报错
jstl引入 tomcat8.5用jstl1.2 tomcat8.5以上用jstl2.0 JSTL下载地址 下载的jar放在lib tld放在tlds文件夹 web.xml <!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Applicati...
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__...
纯css写虚线 控制虚线大小
无法控制虚线的长度border: 1px dashe d#6785C1;通过背景颜色添加虚线background-image: linear-gradient(to right, #ccc 0%, #ccc 50%, transparent 50%); background-size: 8px 1px; backgrou...