前端
文章平均质量分 63
萌萌草的屋
好记性不如博客
展开
-
按enter键,页面刷新,popstate返回事件失效
可能是因为提交表单数据,然后导致的原创 2020-10-23 15:42:57 · 248 阅读 · 0 评论 -
js的数据结构------字典(Dictionary)键值对格式
最近在写前端,哈哈哈哈,然后遇到一个问题。在常量初始化的时候,没有类似后台语言的键值对Map,然后百度一下,看一写文档,来自定义一个。首先是用到js的面向对象思想,底层还是使用js的Array类。/** * Created by limeng on 2018/12/14. */function Dictionary(){ this.dataSource = [];...原创 2018-12-14 14:58:35 · 2966 阅读 · 0 评论 -
springboot thymeleaf.exceptions.TemplateInputException: An error happened during template parsing
2019-02-11 17:13:09.814 datacenter [http-nio-8080-exec-6] ERROR org.thymeleaf.TemplateEngine - [THYMELEAF][http-nio-8080-exec-6] Exception processing template "form": An error happened during templat...原创 2019-02-11 17:21:13 · 19143 阅读 · 0 评论 -
layui使用模板引擎,判断按钮的显示隐藏
怎么根据数据判断按钮的隐藏和显示?传统的做法是用使用模板引擎,el表达式。项目中使用layui,layui中提供了一个模板引擎的laytpl,参考官方文档https://www.layui.com/doc/modules/laytpl.html要实现的功能是 商品已经下架的不显示 下架按钮后台Controller方法@RequestMapping(value = "/li...原创 2019-08-02 11:18:48 · 4463 阅读 · 0 评论