- 博客(11)
- 收藏
- 关注

原创 jsp textarea删除一行或者多行(textarea删除某行)
1:得到要删除行的数组(光标选择了几行 ) //可以直接拷贝,把字体放大的几个地方注意看下就是 function getRows(id){ var startFocus = document.getElementById(id).selectionStart; var endFocus = document.getElementById(id).selectionEnd;
2013-11-26 13:45:32
4256

原创 jsp textarea 得到选中的行(返回数组)
多余的话不说,直接上代码(直接拷贝下面所有代码,即可得到textarea中光标的所有行)function getRows(id){ var startFocus = document.getElementById(id).selectionStart; var endFocus = document.getElementById(id).selectionEnd;
2013-11-26 10:59:09
1033

原创 combotree异步加载 combotree点击加载
//直接上代码 var ids=null;$('#pid').combotree({ url:'你的action名称.action?id=0',cascadeCheck : true, editable:false, multiple:true, //这是出现checkbox一样的框onBeforeExpand:function(node,par
2013-11-23 17:57:12
1430

原创 Eclipse调字体,联想功能(提示功能)设置
1: 调字体 window→preference→General→ Appearance→colors and fonts→ Basic 2:联想功能 (1) window→Preferences-java→Editor→Content Assist (2) 在Auto Activation trig
2013-08-28 22:07:11
1067
原创 easyui tree 子节点选中时,父节点也选中
onCheck:function(node){ // var node1=$(tree).tree('getParent',node.target); $(tree).tree('check', node1.target); }
2014-06-19 20:05:27
9790
1
原创 sqlserver 用sql语句把 datetime 转换为 String
CONVERT(VARCHAR(24),dc.ValibDateStart) >='"+startDate+"'");
2014-06-18 15:43:33
2005
原创 org.hibernate.hql.ast.QuerySyntaxException
遇到这个错误 将 createQuery改为createSQLQuery即可!
2014-03-19 14:15:21
607
原创 select标签记住之前选择
function select(){ var str=${aa}; //数据库查询的值 var obj=document.getElementById("ichprojGrade"); for(var i=0;i if(obj.options[i].value==str){ obj.options[i].sel
2014-01-15 10:57:34
1451
原创 js清空textarea
function formClear(){ CKEDITOR.instances.content.setData("");$('#form1').form("clear");} (如果单纯的只清空textarea 的value 第一条就ok) 我的form 是这样 cms/updateMore.action" method="post">
2013-09-09 17:00:31
6899
原创 WARN com.opensymphony.xwork2.ognl.OgnlValueStack
今天遇到这样一个错误,开始是两个页面非常相似,而且用的是一个action 开始以为是页面的错误,最后检查,发现里边有个 setProperty...的 看图片,最后才发现是 action 里边的 对象 good 没有 getter 和setter 方法
2013-08-27 16:54:51
995
原创 js 打开新页面/js 重定向页面
1 打开新window.open("http://www.baidu.com?aaa=“+abc );2 重定向window.location.href = "www.google.com?g="+ id;
2013-08-24 01:06:37
2161
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人