摘要: 使用nginx在进行测试时,在cmd命令中(在nginx目录下),nginx -t测试配置文件是否正常 有时配置文件没有问题,但是测试不通过,nginx的配置文件默认的是80端口,而电脑的IIS也是80端口,如果启动了IIS(默认80端口,可以修改),可能会造成端口被占用,不能正常启动,当然测试就不 阅读全文
posted @ 2016-04-23 23:03 理舞 阅读(229) 评论(0) 推荐(0)
摘要: html中,在图片和文字对齐的时候,一直没有达到想要的对齐效果,发现使用position中的相对定位+绝对定位+padding+margin可以达到需要的效果。 阅读全文
posted @ 2016-04-23 13:25 理舞 阅读(237) 评论(0) 推荐(0)
摘要: 效果图: 目录信息 graphic.jsp <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta http- 阅读全文
posted @ 2016-04-22 09:39 理舞 阅读(317) 评论(0) 推荐(0)
摘要: 使用ext版本信息:ext-4.1.1a <!-- 下面是引入文件需要导入的文件信息 ext-all.css ext-all.js --><link rel="stylesheet" type="text/css" href="ext-4.1.1a/resources/css/ext-all.css 阅读全文
posted @ 2016-04-22 09:24 理舞 阅读(184) 评论(0) 推荐(0)
摘要: 通过获取请求头中字段user-agent来判别 阅读全文
posted @ 2016-04-21 22:58 理舞 阅读(221) 评论(0) 推荐(0)
摘要: 在tomcat或jetty容器中,在运行时都有编码,如果需要,可以更改设置,在电脑中一般运行时是GBK编码 阅读全文
posted @ 2016-04-21 22:39 理舞 阅读(133) 评论(0) 推荐(0)
摘要: 在页面中嵌入了iframe,如果需要传递参数到iframe中 1.通过将参数嵌入到url中,在iframe中使用${param.xxx}可以获取 2.通过将参数存入到session中,在iframe中使用${sessionScope.xxx}获取 阅读全文
posted @ 2016-04-21 22:35 理舞 阅读(5845) 评论(0) 推荐(1)
摘要: 貌似 收藏栏的图标 阅读全文
posted @ 2016-01-10 18:16 理舞 阅读(179) 评论(0) 推荐(0)
摘要: protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // 设置响应头... 阅读全文
posted @ 2016-01-10 18:09 理舞 阅读(1719) 评论(0) 推荐(0)
摘要: map时key/value形式存储信息的,键可以为对象null public static void main(String[] args) { Map map = new HashMap(); map.put("hello", "world"); m... 阅读全文
posted @ 2016-01-10 18:02 理舞 阅读(429) 评论(0) 推荐(0)