本人js比较弱,但是由于工作需要不得不写js,有时候为了生活还真的比较无奈;为了备忘,现整理如下:
window下查看进程
http://meng702.iteye.com/blog/996605
软创薪:
http://www.fenzhi.com/gsx21723.html
ent:
http://slide.ent.sina.com.cn/slide_4_704_21178.html#p=72
cxtemp
http://www.firstfeeling.cn/thread/thread.aspx?tid=815963cd-d457-4fc3-88e6-018c7102d25d&type=201&subtype=205
http://www.dy555.com/video/?8485-0-0.html 1:53
pf美图
http://tieba.baidu.com/%C9%EE%D0%E3%B9%AC/tupian/view/3
cx688
http://www.gztown.com.cn/archiver/tid-9963.html
cx
http://qsvren.blog.163.com/blog/static/350745672008109800278/
视频转换
http://www.orsoon.com/soft/3925.html
myclipse下安装svn插件
http://blog.csdn.net/xyktc_123/archive/2009/11/05/4770648.aspx
其他svn插件包下载地址:
http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240
背景优
http://hi.baidu.com/470342341/blog/item/180447eae1e3abd9d539c98e.html
经典博客
http://hi.baidu.com/zjphzxg/blog/index/5
http://hi.baidu.com/wosinmaiken/blog flex
http://hi.baidu.com/liao52811/blog/index/1 new
http://blog.csdn.net/fenglibing/archive/2006/04/11/659081.aspx
设计
http://book.51cto.com/art/200912/167208.htm
//打成war包
http://hi.baidu.com/ostech/blog/item/b7a693add2abe9c77dd92a71.html
oracle9i客户端
http://www.crdate.com/Soft/show.asp?id=1157#download
java社区
http://www.java.net/community
friend:http://020.com/forum-34-1.html
工:http://www.jobui.com/job/41799511/
集群同步:http://www.pkwall.com/result/ab220847
linux下安装jdk,mysql,tomcat
http://yangmeiquan-mail-sina-com.iteye.com/blog/744419
tomcat工作原理
http://www.docin.com/p-133783753.html
video合并切割
http://www.orsoon.com/soft/3700.html
http://www.wishdown.com/Software/Catalog52/2480.html
报表
http://wenku.baidu.com/view/3d796600bed5b9f3f90f1c66.html 详细demo
http://jimmy-shine.iteye.com/blog/78678?page=2#comments blog
http://sourceforge.net/projects/ireport/ download
http://www.xker.com/page/e2009/0318/70229.html JasperReport那些事儿
jni调用
http://ljxjava.iteye.com/blog/157722
羽毛球拍:http://www.amazon.cn/mn/detailApp/ref=sr_1_2?_encoding=UTF8&s=sporting-goods&qid=1283240430&asin=B002IA0DL6&sr=1-2
cx:http://v.youku.com/v_show/id_XMTE1OTMyNDQw.html
扶阳:附子30 干姜30 甘草 20 鸡血藤60 内金 30 生牡蛎60 生龙骨60 红枣 10枚 白术 30 细辛20 白芍 20 车前子 20
白茯苓 30 桂枝40 麦冬 30 党参 30 煎煮 一个小时 翻煲一次 一天喝两次 白果10枚
熟附子 30 干姜 30 白术 60 鸡血藤60 内金 20 生牡蛎 60菟丝子 20 补骨脂30 羊霍叶30 肉桂60 (打碎)苁蓉 30 白芍 80 车前子 30 茯苓 60 薏米 30 甘草 30 生石膏 60 红枣 10枚 细辛 12
小体
http://zhidao.baidu.com/question/105619537.html
jmx----weblogic:
http://q.yesky.com/group/review-17560918.html
osgi/0907:http://www.ibm.com/developerworks/cn/java/j-lo-osgi/
cx :http://www.tudou.com/programs/view/aZf3P_cHvmM/isRenhe=1
http://v.youku.com/v_show/id_XMTI1OTgwMzUy.html
final和设计模式:http://rzchina.net/node/4085
webservice
http://zznj1123.iteye.com/blog/300074
http://panpan.blog.51cto.com/489034/119204
查看blog订阅 url/blog/subscriptions
c:
http://developer.51cto.com/art/200906/132528.htm 多级别指针
http://hi.baidu.com/rczjp/blog/item/a6cf1608a2c19ed062d98688.html
http://blog.sina.com.cn/s/blog_4cc09e0601000872.html
http://hi.baidu.com/dongjianblog/blog/item/6de1f9affae291ce7dd92a7d.html
http://yourgame.iteye.com/blog/327013 抽奖
http://javafound.iteye.com/blog/170642 jfreechar
http://www.iteye.com/topic/262370 设计模式
MyEclipse5.5注册码:主动获取
http://hi.baidu.com/cmdy/blog/item/4b21a83dabec01e655e7236b.html
Subscriber: qinjk
SubNULLion Code:dLR8ZC-855550-6959765835409198
以上注册码到2014年4月21日过期
开发网站
http://supportopensource.iteye.com/blog/780573
个人所得税
http://news.longhoo.net/2011-04/21/content_5391001.htm
http://www.ibm.com/developerworks/cn/webservices/ws-osgi-spring1/ osgi
你先更新到cvs,我看看。
然后你到apache 下载个 felix 看看,试试能不能把子任务做成 bundle
http://marshal.iteye.com/blog/140058
plsql工具
plsql
http://hi.baidu.com/zkl312743141/blog/item/5c9c71090a4e842e6b60fbd8.html
plsql注册码
http://www.iteye.com/topic/603633
jdk1.6下载
http://aben328.iteye.com/blog/341499
bash脚本
http://blog.csdn.net/compiler_hdz/archive/2006/01/10/575113.aspx
中产
http://gd.news.sina.com.cn/news/2011/05/03/1133187.html
jdk1.6源码
http://www.javakey.net/source/jdk/1.6/index.html
旗装
http://club.yule.sohu.com/r-tv-967492-120-486-900.html
liunx下jdk6
http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u29-download-513648.html
反编译工具
java反编译工具(可整个包反编译)
http://wangjinhua-110.iteye.com/blog/271318
http://www.firsthospital.cn/doctorinfo.aspx?classid=80&id=10000 慢前
古宇能
ok-q:290293407 潘
sprinv dwr
http://www.myexception.cn/open-source/437916.html
http://directwebremoting.org/dwr/documentation/server/integration/spring.html#springMVC
http://www.ajaxstu.com/archives/1497_98.html
http://www.th7.cn/web/html-css/201409/54936.shtml google兼容onbeforeprint
http://www.shangxueba.com/jingyan/t749073.html
http://stackoverflow.com/questions/1234008/detecting-browser-print-event
http://www.cnblogs.com/exmyth/archive/2013/04/13/3018467.html
http://piranha.iteye.com/blog/829574 poi合并
http://job.liepin.com/262_2622432
http://www.tuicool.com/articles/niERn2 spring代码解读
myEclipse验证码:http://smesoft.blog.51cto.com/2740835/884700
function PageSetup()
{
try
{
var HKEY_Root,HKEY_Path,HKEY_Key;
HKEY_Root="HKEY_CURRENT_USER";
HKEY_Path="\\Software\\Microsoft\\Internet Explorer\\PageSetup\\";
var Wsh=new ActiveXObject("WScript.Shell");
HKEY_Key="header";
Wsh.RegWrite(HKEY_Root+HKEY_Path+HKEY_Key,"");
HKEY_Key="footer";
Wsh.RegWrite(HKEY_Root+HKEY_Path+HKEY_Key,"");
HKEY_Key="margin_bottom";
Wsh.RegWrite(HKEY_Root+HKEY_Path+HKEY_Key,"0.39370");
HKEY_Key="margin_left";
Wsh.RegWrite(HKEY_Root+HKEY_Path+HKEY_Key,"0.59055");
HKEY_Key="margin_right";
Wsh.RegWrite(HKEY_Root+HKEY_Path+HKEY_Key,"0.59055");
HKEY_Key="margin_top";
Wsh.RegWrite(HKEY_Root+HKEY_Path+HKEY_Key,"0.86614");
//alert ("您已成功完成打印边距设置!");
}
catch(e){alert ("页面设置失败,请手工将IE安全级别设置为默认级别,并将本站点添加至信任站点。");}
}
http://download.csdn.net/download/tianxing12/7748997
http://ihanfeng.iteye.com/blog/834232 struct2 上传
case
select id
,case (select count(1) from wf_task t where t.parent_task_id=ht.id ) when 0 then '0' else '1' end from wf_hist_task ht
编码:
http://www.regexlab.com/zh/encoding.htm
http://www.cnblogs.com/chenssy/p/3351835.html
ent
http://blog.sina.com.cn/s/blog_1423123bf0102vruz.html?tj=1
一 常用函数:
1 isNaN(value)判断value是否为数字,需要留意的是当value是数字时候
,它返回false
2 confirm("确定不") 弹出一个对话框 点了确定后和取消后值不一样
3 eval 计算表达式的结果 eval(5+3)
4 parseInt(f.name.value) 把字符串转化数字
5 去掉空格
/*去掉字符串的左右空格*/
function TrimBlank(input){
return input.replace(/(^\s*)|(\s*$)/g, "");
}
6 每隔一段时间循环执行某一函数
window.setInterval("test()",3000); (test为函数名字,单位为毫秒)
7 过一段时间后执行某一函数
setTimeout("test()",3000); (test为函数名字,单位为毫秒,该函数进执行一次)
二 数组
反转:inverse()
排序:sort()
三 日期
var d=new Date(); 当前日期年月日,时分秒的获得
var year=d.getYear();
var month=d.getMonth()+1;
var day=d.getDate();
var hour=d.getHours();
var minuts=d.getMinutes();
var second=d.getSeconds();
var mill=d.getTime(); 毫秒数
四 字符串函数:
1 某一下标下的字符: var temp=input.charAt(index);
2 求某字符第一次出现的下标(没有返回-1) input.indexOf(inputChar);
3 求某字符最后一次出现下标 input.lastIndexOf(inputChar);
4 求子串1(求start到end对应的子串) input.substr(start,end); (包括start和end对应的字符)
求子串2 (求start往对应的子串) input.substr(start); (包含start对应字符)
五 获得提交给当前页面的参数 (详细请看以下的function(即getParamValueByName))
以下假设在浏览器中输入http://localhost:8080/002_ext/student/queryStudentById.html?stuid=1
function getParamValueByName(intputParamName){
var urlAddress=window.location.search;----获得 ?stuid=1
urlAddress=urlAddress.substr(urlAddress.lastIndexOf('?')+1);----获得stuid=1
var paramArray=urlAddress.split('&');
for(var i=0;i<paramArray.length;i++){
var paramNameAndValue=paramArray[i];
var tempArray=paramNameAndValue.split('=');
var paramName=tempArray[0];
var paramValue=tempArray[1];
if(intputParamName==paramName&¶mValue!=null){
return paramValue;
}else{
return null;
}
}
}
六 点击连接后执行javascript函数的写法
var hrefHtml="<a href=javascript:createStuForm("+value+")><i mg src='../images/add.gif' title='新增 学生'></a>";
7 让连接执行某一函数后跳转
<a href='javascript:mufn();window.location.href="url"'>
八 正则表达式的 利用:
eg:判断是否为区号
var input="020";
var regionPatten=/^0[1-9][0-9]{1,2}$/;
var flag= regionPatten.test(input);
判断是否为中文
1 : 包含中文,但不完全是中文
var re = new RegExp("[\\u4e00-\\u9fa5]", "");
var yesorno = re.test(input);
2 全部是中文:
var re = new RegExp("^[\\u4e00-\\u9fa5]+$", "");
var yesorno = re.test(input);
九 获得文档中元素的代码:
var td1=document.getElementById("id");
var orgValue=td1.innerHTML;
十 元素的增加和删除
基本方法:createElement--->appendClild
removeChild
eg:(需要留意的是表格元素的增加中getElementById中的id是tbody的id 不是table的id,而且tbody放在哪个位置非 常关键)
function createMain(){
alert("rrrrrr");
var tb1=document.getElementById("list");
var tr1=document.createElement("tr");
var td1=document.createElement("td");
//td1.innerText="ffff";
td1.innerHTML="<input type='text' />";
var td2=document.createElement("td");
td2.innerHTML="<input type='text' />";
var td3=document.createElement("td");
var td4=document.createElement("td");
td4.innerHTML="<input type='button' value='增加子项'/>";
tr1.appendChild(td1);
tr1.appendChild(td2);
tr1.appendChild(td3);
tr1.appendChild(td4);
tb1.appendChild(tr1);
}
eg2:
function DelSub(){
//var tb1=document.getElementById("list");
//alert(tb1);
var tr1=document.getElementById("003");
var p=tr1.parentNode;
alert(tr1);
alert("p--"+p.nodeName);
var d=p.removeChild(tr1);
}
十一 innerHTML--innerText的区别(http://congjl2002.iteye.com/blog/313458)
十二 表单的动态提交
改变form的action路径,然后调用该form的submit()方法
eg:
<script language="java" type="text/javascript">
function funActive(form,btn){
/*如果button名字为regBtn,则提交到reg.jsp
如果button名字为loginBtn,则提交到login.jsp
*/
var btnName=btn.name;
var url=btnName.substring(0,btnName.length-3);
url+=".jsp";
form.action=url;
form.submit();
}
</script>
<form id='mulActionForm'>
<input type="button" onclick='funActive(this.form,this)' value='reg' name="regBtn" /><br>
<input type="button" onclick='funActive(this.form,this)' value='login' name='loginBtn'/>
</form>
十三: 先验证后才提交表单
<script>
function doSubmit(){
alert("abc");
var age=regform.age.value;
alert("age"+age);
var result=null;
var digital="^\\d+(\\.\\d+)*$";
<!-- 如果age为数字(即doSubmit函数返回true) 则提交到form指定的action 否则不提交;同时注意正则表达式的写法 在方法中原来的\d等要转义,即要写成\\d
-->
if(age.search(digital)==0){
alert("yes will dosubmit");
return true;
}else{
alert("no");
return false;
}
}
</script>
<body>
<form name="regform" action="http://www.sina.com" onsubmit="return doSubmit()" >
<input type="text" name="age" >
<input type="submit" value="abc">
</form>
</body>
相关推荐
关于javascript的基础知识的总结,适于初学者对Javascript基础知识的理解并掌握
将上传的图片添加防伪图片水印,并将图片直接写入数据库,不...js遇到的问题--转义字符。。FileUpload控件上传资源,需要在本地选择资源时为一个文本框赋值,js判断上传图片格式。。只能输入数字与英文,指定位数小数
javascript中Date format(js日期格式化)方法小结.docx
本文实例总结了JS获取文件大小方法。分享给大家供大家参考,具体如下: 方法一,利用ActiveX控件实现: [removed] function getFileSize(filePath) { var fso = new ActiveXObject("Scripting.FileSystemObject");...
在课堂上学到的JavaScript进行总结,希望可以帮助更多的人,多多分享自己,从而能互相学习,如果写的有错误的地方也希望大家能指正
JavaScript作用小结: 1 创建脚本块 2 隐藏脚本代码 3 浏览器不支持的时候显示
本文是一个学习javascript的新手总结的一些关于javascript的方法,有需要的小伙伴可以参考下。
Javascript执行效率小结.pdf
js编写的小网页,可以实现基本的网页功能
JavaScript键盘事件测试小结,相信可能会对您的工作有一定的帮助作用
JavaScript中的document语句类型比较多,不容易记忆和理解,这是我在网上整理的JS中document用法小结
小结了javascript刷新web页面的几种方法
javascript数组去重小结_.docx
JavaScript事件学习小结(五)js中事件类型之鼠标事件 //www.jb51.net/article/86259.htm JavaScript事件学习小结(一)事件流 //www.jb51.net/article/86261.htm javaScript事件学习小结(四)event的公共成员...
javascript脚本调试方法小结.docx
JavaScript事件学习小结(五)js中事件类型之鼠标事件 //www.jb51.net/article/86259.htm JavaScript事件学习小结(一)事件流 //www.jb51.net/article/86261.htm javaScript事件学习小结(四)event的公共成员...