- 博客(15)
- 收藏
- 关注
转载 easyUI相关资料整理
//easyUI初始化select$('#gsUserId').combobox({ url: '${root}/gsUser/getNickName', valueField:'id', textField:'nickName'});
2016-05-31 13:41:35
354
转载 div滑动效果
移动位置的动画 src="Jscript/jquery-1.4.2-vsdoc.js"> src="jquery-1.7.2.min.js"> body{font-size:13px} .divFrame{border:solid 1px
2015-12-18 14:26:15
1623
转载 js--ie与火狐浏览回车提交表单
1.ie与火狐浏览回车提交表单 function keydown(e) { var currKey=0,e=e||event; if(e.keyCode==13) //调用要实现的方法 } document.onkeydown=keydown; 火狐和ie都支持!
2015-10-28 10:36:59
280
转载 js-上传图片预览
无标题页 //上传图片预览function setImagePreview() { var docObj = document.getElementById("imageUpload"); var imgObjPreview = document.getElementById("preview"); var goodsPic = "$
2014-12-18 17:02:16
337
转载 js 实现textarea限制输入字数
window.onload = function() { document.getElementById('txta1').onkeydown = function() { if(this.value.length >= 10) event.returnValue = false; } }
2014-11-12 12:51:28
478
原创 ajax后台取值乱码
contentType: "application/x-www-form-urlencoded; charset=UTF-8", //解决乱码
2014-08-22 10:38:08
295
转载 js 合并列
function uniteTable(tb, colLength) { // 检查表格是否规整 if (!checkTable(tb)) {return;}var i = 0;var j = 0;var k = 0;var rowCount = tb.rows.length; // 行数 var colCount = tb.
2014-06-16 12:22:35
703
转载 获取系统当前时间
1.java后台SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式System.out.println(df.format(new Date()));
2014-03-07 10:28:38
453
转载 js获取当前浏览器相关信息
function getBrowserInfo(){var agent = navigator.userAgent.toLowerCase() ;var regStr_ie = /msie [\d.]+;/gi ;var regStr_ff = /firefox\/[\d.]+/givar regStr_chrome = /chrome\/[\d.]+/gi ;var re
2014-02-28 11:25:20
634
转载 生成MyEclipse注册码类
import java.io.*;public class MyEclipseGen {private static final String LL = "Decompiling this copyrighted software is a violation of both your license agreement and the Digital Millenium Copy
2013-12-31 12:33:07
511
原创 js操作input
1.设置input值为空$("#inputId").attr("value",""); 其中 inputId是input中设置的id属性值。
2013-11-25 12:32:32
1152
原创 js操作select
var select = document.getElementById('select'); for(var i=0;i if(year.options[i].innerHTML == '要设置选中的value值'){ select.options[i].selected = true; break; } }
2013-11-25 11:18:11
425
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人