- 博客(3)
- 收藏
- 关注
转载 一些常用的JS功能
一、判断用户名是否可用function Check(){var Name=document.myform.username.value.replace(/(^/s+|/s+$)/g,);//转换空格为空值if(/[^a-zA-Z0-9_-]/g.test(Name)){//注册名只可以是字母和数字及中下横线 window.alert ("用户名只能使用字母(不区分大小写)和数字及下划线_、中
2008-05-12 21:51:00
533
原创 css禁止其他人的iframe,允许自己的
iframe{v:expression (this.src=about:blank,this.outerHTML=);} #mine{v:expression() !important} 内容: 百度 126邮箱 网易以上三个firame不允许 firame google 是我要的.
2008-05-12 21:40:00
557
原创 TreeView绑定SQL数据库(关键代码)
/// /// 创建树 /// public void InitTree(TreeView tree,DataSet ds,bool expand) { tree.Nodes.Clear(); if (null == ds) return; if (ds.Tables.Count DataRow[] rowList = ds.Tables[0].Select(Table
2008-05-09 19:33:00
426
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人