摘要: //加载js angular.element(document).ready(function() { function post(url, params) { var temp = document.createElement("form"); temp.action = url; temp.me 阅读全文
posted @ 2016-06-13 11:41 李岩-博客 阅读(790) 评论(0) 推荐(0) 编辑
摘要: Name: Taven.Li Organization: MySQL 注册码:NAVN-LNXG-XHHX-5NOO 阅读全文
posted @ 2016-06-06 09:38 李岩-博客 阅读(375) 评论(0) 推荐(0) 编辑
摘要: if ((navigator.userAgent.indexOf('MSIE') >= 0) || (navigator.userAgent.indexOf('Trident') >= 0)){ // IE alert("IE"); xmlDoc=new ActiveXObject("Microso 阅读全文
posted @ 2016-03-17 14:51 李岩-博客 阅读(293) 评论(0) 推荐(0) 编辑
摘要: JSONArray jsonArr = JSONArray.toJSONObject("数组/集合"); JSONObject obj = JSONObject.fromObject("对象");所需的jar 包有:json-lib-2.1.jarjson_simple.jarcommons-l... 阅读全文
posted @ 2014-05-19 15:07 李岩-博客 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 详情:http://jqueryui.com/slider/ 阅读全文
posted @ 2014-01-22 16:32 李岩-博客 阅读(272) 评论(0) 推荐(0) 编辑
摘要: conllections.sort(List); 阅读全文
posted @ 2014-01-17 11:57 李岩-博客 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 在ie中load()方法去是拿缓存的数据而不是向服务器拿 在script开头加上这句js 让ie不读取缓存就好 如果只是一个方法用到load() 那就在load()之前加上这句 不需要全局设置$.ajaxSetup ({ cache: false}); 阅读全文
posted @ 2013-12-04 17:19 李岩-博客 阅读(431) 评论(0) 推荐(0) 编辑
摘要: setInterval("freshClient()",10000); //异步获取客户端 function freshClient() { $.post("info.do", {"method": "getClientAsync"}, function (ags) {});1、setInterval("freshClient()",10000); 十秒刷新一次freshClient() 方法2、"info.do" 请求3、 {"method": &quo 阅读全文
posted @ 2013-11-26 15:55 李岩-博客 阅读(144) 评论(0) 推荐(0) 编辑
摘要: jsp 写了一个点击事件 onclick("list()"),在低一些版本的浏览器中 是没错误的,list() 方法能够正常执行,在最新的浏览器版本中就不执行,果断认为list() 这个名字起的太奇葩了,有冲突,改了一下名称,一切运行正常。。。。大家以后不要用特殊的名称命名 阅读全文
posted @ 2013-11-26 15:36 李岩-博客 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 在接收大文件时,比如文件大于几兆、 几十兆时,接收文件会出现问题,那就是read()阻塞问题,怎么解决呢?1、可以用socket 设置一个超时的动作,比如说:socket.setSoTimeout(3000); 3秒后就不再执行,也就是 read() 随之结束。2、就是 先给对方发个消息头,告诉对方这个文件的信息,比如:文件的长度 size,根据这个size ,循环接收,超过size 就结束。 阅读全文
posted @ 2013-11-26 15:23 李岩-博客 阅读(435) 评论(0) 推荐(0) 编辑