摘要:
方法一: $(document).ready(function () { $(Element).eq(-1).remove(); }); 方法一: $onload(RemoveLastElement); function RemoveLastElement() { $(Element).eq(-1).remove(); } 阅读全文
摘要:
方法一: $(document).ready(function () { $(Element).eq(-1).remove(); }); 方法一: $onload(RemoveLastElement); function RemoveLastElement() { $(Element).eq(-1).remove(); } 阅读全文
摘要:
Repeater 第一行添加样式 ">.html" title="" target="_blank"> ... 阅读全文
摘要:
Asp.Net 中Ajax验证中 当验证失败时,SetFocusOnError="True" 这句的作用是定位到验证错误的地方。 阅读全文
摘要:
drop 删除表和表中的所有数据(不保留表的结构) droptable tablenametruncate 删除表中的所有数据(保留表的结构)truncate table tablenamedelete 删除表中的数据,一般配合where使用(保留表的结构) 阅读全文
摘要:
left join(左联接) 返回包括左表中的所有记录和右表中联结字段相等的记录right join(右联接) 返回包括右表中的所有记录和左表中联结字段相等的记录inner join(等值连接) 只返回两个表中联结字段相等的行举例如下:--------------------------------... 阅读全文
摘要:
一、正则表达式 //首先引用命名空间using System.Text.RegularExpressions;string s= TextBox1.Text.Trim();Regex reg = new Regex("^[0-9]+$");Match ma = reg.Match(s);if(ma.... 阅读全文
摘要:
use 数据库名称go--使用 sp_change_users_login 修复产生的孤立账户--列出当前数据库的孤立用户exec sp_change_users_login 'report'--可以自动将用户名所对应的同名登录添加到 syslogins 中exec sp_change_users_... 阅读全文
摘要:
System.Guid.NewGuid().ToString(); //ToString() 为 null 或空字符串 (""),则使用"D"。 结果:820941e4-3dd5-4835-b67a-b19b208428ccSystem.Guid.NewGuid().ToString(... 阅读全文
摘要:
using System.IO;string directory = "UploadPhotos/"; //在服务器上创建上传图片存储的文件夹if (!Directory.Exists(Server.MapPath(directory))... 阅读全文
|