摘要:
原则一: 继承不如指定原则二: #id > .class > 标签选择符原则三:越具体越强大原则四:标签#id >#id ; 标签.class > .classCSS优先级权重计算法CSS优先级包含四个级别(标签内选择符,ID选择符,Class选择符,元素选择符)以及各级别出现的次数!根据这四个级别... 阅读全文
摘要:
$.ajax({ type: 'POST', url: 'AddressManager.aspx/GetProvince',//AddressManager.aspx当前页面 data: '{cache:0}... 阅读全文
摘要:
基本常用查询--selectselect * from student; --all 查询所有select all sex from student; --distinct 过滤重复select distinct sex from student; --count 统计select count(*) from student;select count(sex) from student;select count(distinct sex) from student; --top 取前N条记录select top 3 * from student; --alias column name 列重命 阅读全文
摘要:
向某些方法上面加[Obsolete]会让代码提出警告“已过时” [Obsolete]publicstaticintGetAge(){return23; } inti=GetAge();//提示代码已过时Console.WriteLine(i);Console.ReadKey(); 阅读全文
摘要:
1 //一.工厂模式 2 function createBox(user,age){ 3 var obj=new Object(); 4 obj.user=user; 5 obj.age=age; 6 obj.run=function(){ 7 return this.user+this.age+"原型在哪里!"; 8 }; 9 return obj;10 }11 var obj1=createBox("mly",20);12 alert(obj1.run());13 var ob... 阅读全文
摘要:
IF EXISTS(SELECT * FROM SYSOBJECTS WHERE NAME = 'StuWebName')DROP TABLE StuWebNameGOCREATE TABLE StuWebName(StuId INT IDENTITY(1,1) PRIMARY KEY,StuName VARCHAR(50) NOT NULL,StuPassword VARCHAR(50) NOT NULL,StuSex CHAR(2) DEFAULT('男'),StuNo INT NOT NULL)GODECLARE @ID INTSET @ID=1WHILE 阅读全文
摘要:
//一般情况下我们会这么删除 DataTable dt = new DataTable(); for (int i = 0; i < dt.Rows.Count; i++) { if (99 % i == 0) { dt.Rows.RemoveAt(i); } } //但是这么删除会出现... 阅读全文
摘要:
USE SilverlightDemo--SilverlightDemo为你所在的数据库GOselect b.[name] '表名',max(a.rowcnt) '记录数' from sysindexes a join sys.objects b on b.object_id=a.id where b.type='U' group by b.[name] 阅读全文
摘要:
1.用Spire.XLS.dll和Spire.License.dll导入和导出ExcelView Code 1 private void ExportExcelFile() 2 { 3 //创建一个流 4 using (MemoryStream stream = new MemoryStream()) 5 { 6 //创建Excel文档 7 Spire.Xls.Workbook book = new Spire.Xls.Workbook();... 阅读全文
摘要:
首先创建表和添加数据想要的结果--方法一SELECT DISTINCT C.[USER_NAME] AS '姓名',(SELECT SCORE FROM TEST_TB_GRADE WHERE [USER_NAME]=C.[USER_NAME] AND COURSE='语文') AS '语文',(S... 阅读全文