上一页 1 ··· 8 9 10 11 12 13 下一页
摘要: 页面达到效果 【主html页面代码】 <!-- 合作单位 版块 -->[#include 'inc_project_succ_coo.html'/]【'inc_project_succ_coo.html'代码】 【配置文件】 【application.properties】 【java类】 阅读全文
posted @ 2016-08-19 11:41 涤新云 阅读(478) 评论(0) 推荐(0) 编辑
摘要: 1 自定义标签需要实现TemplateDirectiveModel这个接口中的execute方法 实例代码如下 2 配置 UserListDirective 到spring bean xml中 3 将spring bean 设置到freemarkerConfig全局变量中去。 4 ftl文件中的访问 阅读全文
posted @ 2016-08-19 11:35 涤新云 阅读(6969) 评论(0) 推荐(1) 编辑
摘要: ava代码如下: Java代码 import freemarker.core.Environment; import freemarker.template.ObjectWrapper; import freemarker.template.TemplateDirectiveModel; /** * 阅读全文
posted @ 2016-08-19 11:32 涤新云 阅读(1772) 评论(0) 推荐(0) 编辑
摘要: 首先需要添加freemarker.jar到项目,如果项目中有spring或者spirngmvc,需要整合,首先配置freemarkerConfig,代码结构如下: 其中一下代码是用来扫描.ftl的模板文件,在/web-info/freemarker目录中 然后freemarker用ftl文件来呈现视 阅读全文
posted @ 2016-08-19 11:24 涤新云 阅读(6364) 评论(1) 推荐(1) 编辑
摘要: 效果 核心代码 【js】 [#escape x as (x)!?html]<!doctype html><html lang="zh-CN"><head><meta charset="utf-8"/><title>[#include 'inc_title.html'/]</title><meta h 阅读全文
posted @ 2016-08-11 20:13 涤新云 阅读(216) 评论(0) 推荐(0) 编辑
摘要: <div class="hc-prm-search search flr"> <form action="/userCenter/projectInfo_4_1.jspx?flag=${flag}" method="post"> [#if flag=="1"] <input type="text" 阅读全文
posted @ 2016-08-11 18:27 涤新云 阅读(766) 评论(0) 推荐(0) 编辑
摘要: 第一种 单独一个form表单提交 <div class="hc-prm-search search flr"> <form action="/userCenter/projectInfo_1_1.jspx" method="post"> <input type="text" id="search_C 阅读全文
posted @ 2016-08-11 16:53 涤新云 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 效果 实现的思路如下: controller层同时把两个内容都查处理 前端html用js控制显示 (1)前端的tab代码 (2)tab内容的结构 (3)关键部分 js $(".hd ul li").click(function(){ var index=$(this).index(); $(this 阅读全文
posted @ 2016-08-11 14:57 涤新云 阅读(6486) 评论(0) 推荐(0) 编辑
摘要: 效果 方法一: table增加下面属性 参考内容 HTML如何让table中的td内容过长显示为固定长度,多余部分用省略号代替 这个问题呢,是由于我们公司测试的部门测出来的,虽然说测试的内容本身就是个BUG,不过这个也让我学到了一个比较好的归类于布局的一个小技巧,就是将td标签中过长的内容只显示为这 阅读全文
posted @ 2016-08-11 12:19 涤新云 阅读(14001) 评论(0) 推荐(1) 编辑
摘要: 阅读全文
posted @ 2016-08-10 15:11 涤新云 阅读(178) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 下一页