上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页
摘要: ⼯具表达式对象除了这些基本的对象之外,Thymeleaf将为我们提供⼀组⼯具对象,这些对象将帮助我们在表达式中执⾏常⻅任务。#execInfo:有关正在处理的模板的信息。#messages:⽤于在变量表达式中获取外部化消息的⽅法,与使⽤#{...}语法获得的⽅式相同。#uris:转义URL / UR 阅读全文
posted @ 2020-02-08 11:17 MyBeans 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 1.当时间为2013-09-05时正常显示 <input class="form-control" name="applytime" type="date" value="2013-09-05"> 2.后台返回数据: Wed Feb 05 00:00:00 CST 2020 回显失败 阅读全文
posted @ 2020-02-07 15:03 MyBeans 阅读(1003) 评论(0) 推荐(0) 编辑
摘要: img: <img src="/upload/${good.photo}" style="width: 120px;height: 120px;" alt="图片" class="img-thumbnail"><br> ${good.photo}值为: ccc9bfb2ccb140f781aa147 阅读全文
posted @ 2020-02-05 15:03 MyBeans 阅读(2042) 评论(0) 推荐(0) 编辑
摘要: Thymeleaf 的条件判断是 通过 th:if 来做的,只有为真的时候,才会显示当前元素 <p th:if="${testBoolean}" >如果testBoolean 是 true ,本句话就会显示</p> 取反可以用not, 或者用th:unless. <p th:if="${not te 阅读全文
posted @ 2020-02-04 12:42 MyBeans 阅读(1831) 评论(0) 推荐(1) 编辑
摘要: 1.字符串/图片/map集合 @GetMapping("/hello") public String test(Model model){ String message="first thymeleaf !!"; model.addAttribute("message",message); User 阅读全文
posted @ 2020-02-04 11:58 MyBeans 阅读(819) 评论(0) 推荐(0) 编辑
摘要: Vue(十)---路由 Vue.js 路由允许我们通过不同的 URL 访问不同的内容。通过 Vue.js 可以实现多视图的单页Web应用(single page web application,SPA)。 需要引入vue-router.js 1.基本介绍: https://www.cnblogs.com/superlizh 阅读全文
posted @ 2020-02-04 10:46 MyBeans 阅读(239) 评论(0) 推荐(0) 编辑
摘要: th:href="@{/static/css/style.css}" th:src="@{/static/js/thymeleaf.js}" index.html <head> <meta charset="UTF-8"> <title>首页</title> <link rel="styleshee 阅读全文
posted @ 2020-02-03 15:40 MyBeans 阅读(10217) 评论(0) 推荐(1) 编辑
摘要: 1.下载--安装 2.创建js文件 var http = require('http'); var url=require('url'); //引入url 模块,帮助解析 var querystring=require('querystring');// 引入 querystring 库,也是帮助解 阅读全文
posted @ 2020-02-03 14:08 MyBeans 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 1.无参数 自定义指令的方式:1. 使用Vue.directive 来自定义2. 第一个参数就是 指令名称 xart3. el 表示当前的html dom对象4. 在方法体内就可以通过 innerHTML style.color 等方式操控当前元素了 <body> <div id="app"> <d 阅读全文
posted @ 2020-02-03 13:37 MyBeans 阅读(1188) 评论(0) 推荐(0) 编辑
摘要: 结构: Spring和Hibernate整合借助于HibernateTemplate applicationContext.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/ 阅读全文
posted @ 2020-02-02 15:02 MyBeans 阅读(340) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页