
前端学习
ID-柒
这个作者很懒,什么都没留下…
展开
-
springboot集成前端
1、添加必要依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId></dependency>2、配置资源文件spring: thymeleaf: #定位模板的目录,即index文件目录 prefix: classpath:/.原创 2021-06-09 20:03:53 · 1344 阅读 · 0 评论 -
filters/map/reduce 高阶函数
filters/map/reduce 高阶函数1、fitersfiter回调函数,必须返回一个boolean值,如果这个值为true,内部回调函数,将回调的值加入新的数组中,如果为false,函数会过滤了这次回调值const num = [199,20,380,34324,5454,90,2,343,53,45]//找出其中小于100的值let newnum = num.filter(function(n){ return n<100})//简写let newnum =原创 2021-04-27 10:03:51 · 131 阅读 · 0 评论