- 博客(15)
- 资源 (7)
- 收藏
- 关注

原创 freemaker 使用思路
1 引入freemaker包注意:选取最新jar包,否则可能会报错2 创建 Configuration对象: tempConfiguration = new Configuration(); Configuration 对象主要是用来获取模板(Template)对象(或者说文件)3 设置Configuration信息,如模板存放位置,字符编码等; tempConfi
2015-05-26 15:20:06
814
转载 android中的TextView滚动条的设置
方法一:经验证, 以下方法可用:一、Xml代码 android:id="@+id/textview" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="false" android:maxL
2014-03-28 14:35:56
976
原创 ul、li制作二级下拉菜单
ul、li制作二级下拉菜单 <!DOCTYPE html PUBliC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">css菜单演示<!--*{margin:0;padding:0;border:0;}
2014-03-26 15:51:11
3680
转载 js版本的AJAX
/** * 得到ajax对象 */function getajaxHttp() { var xmlHttp; try { // Firefox, Opera 8.0+, Safari xmlHttp = new XMLHttpRequest(); } catch (e) { // Internet Explorer try { xml
2014-03-22 18:03:27
650
转载 页面高度获取
js获取页面各种高度网页可见区域宽:document.body.clientWidth; (这个没有搞明白!)网页可见区域高:document.body.clientHeight; 网页可见区域高:document.body.offsetWidth (包括边线的宽);网页可见区域高:document.body.offsetHeight (包括边线的宽);网页正文全文宽:
2014-01-18 23:57:06
704
原创 SPRING MVC 2
web.xml<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation
2013-12-22 21:58:28
673
翻译 spring 3
web.xml<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation
2013-12-22 21:57:19
719
原创 spring 配置
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springf
2013-12-22 21:55:10
743
翻译 file
index.html function doit(){ $("#sub").submit(); } SPRING MVC config file xxx-servlet.xml <bean id="viewResolver" class="org.springframe
2013-12-22 21:53:28
774
原创 php 导出EXCEL文件
1.下载HPHExcel包。2.引入包require_once 'PHPExcel/PHPExcel.php';3.方法 /** * 提供EXCEL导出 * 参数:EXCEL名称,内容 * 内容:一个二维数组 */ public static function outputExcel($title,$content){ $rows = $c
2013-12-22 21:48:53
693
翻译 php smarty
1.下载smarty插件,最终会拿到一个libs的文件夹,里面包含几个PHP及几个文件夹,其中有一个PHP叫Smarty.class.php2.将libs中的Smarty.class.php引入自己的PHP中,也可以当作头文件引入,引入方式类型于require '../../libs/Smarty.class.php';3.Smarty可配置四个目录,默认名称分别是 templat
2013-12-22 21:47:56
638
原创 check 切换,,radio获取 ,,jquery代码
radio的一些用法,关键代码如下(基于jquery)//取值$("#quzhi").click(function(){// var selected = $("[name='group1']").filter(':checked'); var selected = $("[name='group1']:checked"); $("#message").html($(selec
2013-12-22 21:45:01
1143
转载 spring mvc demo
第一步:准备包:日志相关包jcl-over-slf4j-1.6.1.jarlogback-classic-0.9.29.jarlogback-core-0.9.29.jarslf4j-api-1.6.1.jarjstl包jstl-1.2.jarspring 相关包org.springframework.asm-3.1.1.RELEASE.jarorg.spr
2013-11-14 14:39:44
633
转载 JAVA 程序优化
1.JDBC连接数据库,共享数据库连接,只需要进行一次数据库连接操作,省去了多次重新建立数据库连接的时间public class JdbcUtil { private static Connection con; // 从配置文件读取连接数据库的信息 private static String driverClassName; pri
2013-10-28 23:32:09
557
转载 windows linux 文件传输
一、pscp 简要描述:PSCP (PuTTY Secure Copy client)是PuTTY 提供的文件传输工具 ,通过 SSH 连接,在两台机器之间安全的传输文件,可以用于任何 SSH(包括 SSH v1、SSH v2) 服务器。 二、下载及使用1、下载: 可以从http://www.chiark.greenend.org.uk/~sgtatham/putty/download
2013-10-28 14:18:46
548
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人