摘要: 注意事项: .html(),.text()和.val()的差异总结: 阅读全文
posted @ 2016-10-21 18:51 森林王子 阅读(179) 评论(0) 推荐(0)
摘要: 单选: 获取值:$("input[name='rdo']:checked").val(); 设置值:$("input[name='rdo'][value='3']").prop("checked", true) $("input[name='rdo']:eq(2)").prop("checked", 阅读全文
posted @ 2016-10-20 15:54 森林王子 阅读(219) 评论(0) 推荐(0)
摘要: 纯CSS方式实现隔行颜色交替、鼠标经过高亮颜色: js方式实现隔行颜色交替、鼠标经过高亮颜色: 在线测试:http://www.runoob.com/try/try.php?filename=tryjquery_hide 阅读全文
posted @ 2016-10-19 14:29 森林王子 阅读(485) 评论(0) 推荐(0)
摘要: 1.全选、反选 在线测试:http://www.runoob.com/try/try.php?filename=tryjquery_hide 阅读全文
posted @ 2016-10-19 14:01 森林王子 阅读(131) 评论(0) 推荐(0)
摘要: JQUERY等效属性方法 1.当前元素的下一个元素 1.$(".current+") == 2.$(".current").next() 2.当前元素的所有同辈元素 $(".current~") == $(".current").siblings() 3.当前元素的所有后代元素 $(".curren 阅读全文
posted @ 2016-10-18 19:42 森林王子 阅读(170) 评论(0) 推荐(0)
摘要: 实现功能: 多个字段分组源码样例: 原始数据: 分组后的输出结果: 源代码: 阅读全文
posted @ 2016-10-14 18:47 森林王子 阅读(11981) 评论(0) 推荐(0)
摘要: 删除日志记录,仅保留最近1000条记录 Delete From Log Where ID<(select max(ID)-1000 from Log 阅读全文
posted @ 2016-05-30 08:57 森林王子 阅读(165) 评论(0) 推荐(0)
摘要: 修改/ckfinder/config.ascx文件: string dateDir = DateTime.Today.ToString("yyyyMM/"); ResourceType type; type = ResourceType.Add( "Files" ); type.Url = Base 阅读全文
posted @ 2016-04-16 17:48 森林王子 阅读(792) 评论(0) 推荐(0)
摘要: 1 /// <summary> 2 /// Performs an SQL update 3 /// </summary> 4 /// <param name="tableName">The name of the table to update</param> 5 /// <param name= 阅读全文
posted @ 2016-03-05 22:57 森林王子 阅读(944) 评论(0) 推荐(0)
摘要: Server Error in '/' Application. WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping 阅读全文
posted @ 2016-02-23 21:36 森林王子 阅读(563) 评论(0) 推荐(0)