随笔分类 -  小技巧

(转)模式窗口showModalDialog的用法总结
摘要:、打开窗口:var handle = window.showModalDialog(url, objects, feathers);其中:objects可以为参数(包括数组),也可以是对象。通常的用法objects = {window} ,把父窗体的对象共享给子窗体。2、关闭子窗口:window.close();3、从子窗体传参数给父窗体:window.returnVal = string;4、清... 阅读全文
posted @ 2007-04-24 13:57 星火燎原 阅读(1147) 评论(0) 推荐(0)
按月统计数据
摘要:select count(ArticleID), datename(year, AddTime) as year, datename(month, AddTime) as monthfrom Blog_Article where UserID=163 and Status=2 group by datename(year, AddTime) , datename(month, AddTime) 阅读全文
posted @ 2006-09-03 23:44 星火燎原 阅读(337) 评论(0) 推荐(0)
javascript通过IE调试的工具
摘要:http://download.microsoft.com/download/winscript56/install/1.0a/NT45XP/EN-US/scd10en.exe需要修改IE选项-->高级-->禁止脚本调试(Internet Explorer)(去掉对钩) 阅读全文
posted @ 2006-07-20 22:15 星火燎原 阅读(1166) 评论(0) 推荐(0)
收集的一些JavaScript
摘要:1.判断电话号码和邮箱 <scriptlanguage="javascript">functionCheckTel(e){varre=/^(\d|-|)*$/;vars=e.match(re);if(s==null){alert("只能输入数字和-");}}functionCheckEmail(e){varre=/^\w+@\w+\.\w{2,3}/;if(!re.exec(e))al... 阅读全文
posted @ 2006-03-13 13:04 星火燎原 阅读(352) 评论(0) 推荐(0)
仿IE地址栏控件
摘要:http://www.codeproject.com/aspnet/combobox.asp 阅读全文
posted @ 2006-03-13 11:51 星火燎原 阅读(286) 评论(0) 推荐(0)
SQL语句
摘要:INSERTINTOzjz.dbo.employee(employee_code,technical_post,duty,name,sex,id_card,birthday,nation,speciality,graduate_college,cultrue_level)SELECTNo_Staff,Title,Duty,StaffName,CASESexWHEN'男'THEN'1'ELSE'2'... 阅读全文
posted @ 2006-03-11 12:59 星火燎原 阅读(226) 评论(0) 推荐(0)
Treeview控件显示不正确
摘要:Treeview控件,部署的时候,大部分机子都能正常显示,但是在win2003系统下并且打了sp1补丁的就不能正常显示了,没有打补丁的可以显示方法:ie设置-安全-自定义级别-二进制脚本和行为-启用 阅读全文
posted @ 2006-03-09 15:12 星火燎原 阅读(392) 评论(0) 推荐(0)