Let the storm money come!

随笔分类 -  JS

一些我可以常用的js脚本
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--functionMan(){//私有静态属性varSex="男";//私有静态方法functioncheckSex(){return(Sex=="男");}//私有方法this._getSex=fun... 阅读全文
posted @ 2010-08-19 11:28 精密~顽石 阅读(227) 评论(0) 推荐(0) 编辑
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<html><head><scriptsrc="jquery-1.4.2.min.js"></script></head><body&... 阅读全文
posted @ 2010-08-12 17:23 精密~顽石 阅读(350) 评论(0) 推荐(0) 编辑
摘要://如果generateRow是一个行对象,那么children()得到的就是这一行的所有列[代码] 阅读全文
posted @ 2010-08-12 17:05 精密~顽石 阅读(254) 评论(0) 推荐(0) 编辑
摘要:漏掉一个加号,导致整个 js 都验证失败。 阅读全文
posted @ 2010-07-14 17:33 精密~顽石 阅读(148) 评论(0) 推荐(0) 编辑
摘要:$(this).val().replace(/,/g,'') 阅读全文
posted @ 2010-07-12 16:46 精密~顽石 阅读(114) 评论(0) 推荐(0) 编辑
摘要:alert($("#mytb tr :input[dname]").val()); [dname] 就是可以判断 这个 input 如果有dname 就会被选中。 阅读全文
posted @ 2010-07-03 11:17 精密~顽石 阅读(998) 评论(0) 推荐(0) 编辑
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<html><head><scriptsrc="jquery-1.4.2.min.js"></script></head><body&... 阅读全文
posted @ 2010-06-23 14:24 精密~顽石 阅读(1529) 评论(0) 推荐(0) 编辑
摘要:$("#mytb tr:eq(0) td:eq(1) :nth-child(2)").attr("id"); tr:eq 第0行, td:eq 第 0 行的第一列, :nth-child(2) 第0行第一列的第二个对象 这里要记住的是 eq 是从 0 开始计算的,而 nth-child(index) 是从 1 开始计算的。 阅读全文
posted @ 2010-06-22 20:49 精密~顽石 阅读(903) 评论(0) 推荐(0) 编辑
摘要:Get[edit]DISAMBIGUATIONIt can be: .get()DOM manipulation, or $.get()data transfer method CONTENTS 1Disambiguation 2$.get() - Data transfer method 2.1Reference 2.1.1Example 2.1.1.1Front-end 2.1.2PHP co... 阅读全文
posted @ 2010-06-22 00:15 精密~顽石 阅读(693) 评论(0) 推荐(0) 编辑
摘要:$("p:eq(1)").css("color", "red"); 也可以用 $("p:nth(1)") 来表示,不知道原理是什么,但是经过测试确实有效。 阅读全文
posted @ 2010-05-29 16:59 精密~顽石 阅读(307) 评论(1) 推荐(0) 编辑
摘要:$("ul:nth-child(5n)").css("background-color","red");这样可以选择 5 的倍数行 阅读全文
posted @ 2010-05-12 14:50 精密~顽石 阅读(490) 评论(0) 推荐(0) 编辑
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<%@PageLanguage="C#"AutoEventWireup="true"CodeBehind="Default.aspx.cs"Inherits="TestDemo._Default... 阅读全文
posted @ 2010-05-12 10:43 精密~顽石 阅读(324) 评论(0) 推荐(0) 编辑
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--functionNewClick(obj){varcurrentIndex=$(obj).parent().parent()[0].rowIndex;//得到当前的行索引$(obj).parent()... 阅读全文
posted @ 2010-04-20 20:03 精密~顽石 阅读(215) 评论(0) 推荐(0) 编辑
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//选择当前列表中的所有行functionselectAllRow(oChk){$("input[name='chkRow']").attr("checked",oChk.checked);}//批量... 阅读全文
posted @ 2010-04-02 10:37 精密~顽石 阅读(150) 评论(0) 推荐(0) 编辑
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--functionparseDate(dateFormate){varyear=dateFormate.substring(0,4);varmonth=dateFormate.substring(5,7... 阅读全文
posted @ 2010-04-02 09:50 精密~顽石 阅读(438) 评论(0) 推荐(0) 编辑
摘要:选中父节点,同时选中子节点。 选中子节点,自动勾选上父节点,当所有的子节点都没有选中的时候,又自动取消父节点的勾选。代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<scriptsrc="http://www.cnblogs.com/js/j... 阅读全文
posted @ 2010-03-17 09:08 精密~顽石 阅读(486) 评论(0) 推荐(0) 编辑
摘要:但其他脚本,与 asp.net 验证控件一起进行脚本验证时,容易使 asp.net 验证控件的验证,失去效果,下面提供了一种比较好的解决方案代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<asp:ButtonID="btnOK"runat=... 阅读全文
posted @ 2010-03-10 17:51 精密~顽石 阅读(161) 评论(0) 推荐(0) 编辑
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--两个时间,后一个不能大于前一个发送时间<asp:TextBoxID="txtSendTime"onfocus="WdatePicker({dateFmt:'yyyy-MM-ddHH:mm:ss'... 阅读全文
posted @ 2010-03-08 20:41 精密~顽石 阅读(2395) 评论(0) 推荐(0) 编辑
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--functionhasClass(name,type){varr=[];//Locatetheclassname(allowsformultipleclassnames)varre=newRegExp... 阅读全文
posted @ 2010-02-24 14:44 精密~顽石 阅读(200) 评论(0) 推荐(0) 编辑
摘要:this.options[this.options.selectedIndex].value 阅读全文
posted @ 2010-01-18 18:07 精密~顽石 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
在通往地狱的路上,加班能使你更快到达。
点击右上角即可分享
微信分享提示