2018年1月22日
摘要: 1.获取freemarker自定义标签list的索引值 <#list toplist as toplists>${toplists_index}< /#list> 2.js占位符 {X}的应用 <script type="text/javascript"> String.prototype.form 阅读全文
posted @ 2018-01-22 17:12 青葙 阅读(70) 评论(0) 推荐(0) 编辑
  2018年1月17日
摘要: <table id="attachTable" border="0" width="80%"> 这是要操作的表对象 <tr> <td width="45%" bgcolor="#CCCCCC">代买货物类型</td> <td width="20%" bgcolor="#CCCCCC">总金额数</t 阅读全文
posted @ 2018-01-17 09:34 青葙 阅读(217) 评论(0) 推荐(0) 编辑
  2017年12月22日
摘要: 事件监听: <script>window.onload = function(){alert(321);}</script> JS中onload多个事件 <1> <body onload="aa();bb();cc()">用分号隔开就可以了 <2> window.attachEvent("onloa 阅读全文
posted @ 2017-12-22 10:25 青葙 阅读(3195) 评论(0) 推荐(0) 编辑
  2017年12月20日
摘要: 此框架为springmvc freemarker搭建而成, Excel有2003与2007版本不同,其使用方法也不同,此方法为通用方法 一、导出 前端为: <form action="v_export.do" method="post" style="padding-top:5px;"><input 阅读全文
posted @ 2017-12-20 14:20 青葙 阅读(430) 评论(1) 推荐(0) 编辑
  2017年12月13日
摘要: 1.打开Xshell 填写要部署的服务器的ip地址 填写用户名 密码 登录进去 2.cd打开目录 也可以之间点右上方一个文件传送按钮 在指定的目录下 将新文件部署上去,一般会将原来的文件做一个版本号,继续保留 查看java进程 ps -ef|grep java 杀进程 kill -9 端口号 重启服 阅读全文
posted @ 2017-12-13 10:08 青葙 阅读(976) 评论(0) 推荐(0) 编辑
  2017年11月24日
摘要: 在使用freemarker向后台传递数据是老是不能显示数据,${user.id}显示为1,但后台打印User [id=22, name=null, age=null, address=null] 可见是页面上对象属性的显示问题,后来修改向页面传递的对象的名字就好了 controller中代码为: m 阅读全文
posted @ 2017-11-24 13:51 青葙 阅读(299) 评论(0) 推荐(0) 编辑
  2017年11月18日
摘要: 项目是用spring springmvc hebrinate组成的架构,在添加的时候报了这个错误 controller贴在这里 求大神指教 阅读全文
posted @ 2017-11-18 14:06 青葙 阅读(4687) 评论(1) 推荐(0) 编辑
  2017年11月17日
摘要: 注意事项: 对应的字段类型指的是hibernate中的字段类型,不是Java中的类型 应该小写 integer、string这样,或者是写成java.lang.String <class name="User" table="useres"> <meta attribute="sync-DAO">f 阅读全文
posted @ 2017-11-17 15:07 青葙 阅读(362) 评论(0) 推荐(0) 编辑
  2017年11月10日
摘要: 用eclipse构建的maven工程部署到tomacat时,而且Tomcat的web-inf下面的lib文件中是空的,解决方法: 1.可以手动将所有的依赖都拷到lib中,但是每次重新部署后,eclipse都会自动清空lib 2.修改.classpath文件 问题二:在启动Tomact过程中报clas 阅读全文
posted @ 2017-11-10 09:12 青葙 阅读(624) 评论(0) 推荐(0) 编辑
  2017年11月9日
摘要: 在eclipse中集成freemaker help >install new .. >add 添加此链接 http://download.jboss.org/jbosstools/updates/development/indigo/ 若只安装freemaker则只要选择 JBoss Applica 阅读全文
posted @ 2017-11-09 10:57 青葙 阅读(251) 评论(0) 推荐(0) 编辑