spring boot springboot访问静态页面,并加载css、js样式 애타게샤오닝 发表于2024-06-23 浏览6444 评论0 1、添加thyme leaf模板依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> 2、将静态资源分别放入spring boot相应目录下,一般static放资源,t
html5教程 移动端事件(移动端事件有哪些) 7 发表于2024-06-18 浏览6288 评论0 一、移动端事件有哪些 触摸事件 touch事件 pointer事件 手势( gesture)事件 传感器( sensor)事件 二、touch事件 touch 相关的事件跟普通的其他 dom 事件一样使用,可以直接用 addEventListener 来监听和处理。 最基本的 touch 事件包括4个事件: touchstart:当在屏幕上按下手指时触发 touchmove:当在屏幕上移动手指时触发 touchend:当在屏幕上抬起手指