摘要:
有时候页面中的中文打开后变成乱码,主要是编码问题在DOCTYPE标签后加入<meta http-equiv="content-type" content="text/html; charset=utf-8" />charset对应页面的编码,不一定是utf-8,也可能是gb2312,gbk等,根据实际情况修改HTML header结构<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/htm 阅读全文
摘要:
#region Types public enum Countries { USA, Italy, } public class Customer { public string Name {get;set;} public string City { get; set; } public Countries Country { get; set; } public Order[] Orders { get; set; } public override st... 阅读全文
摘要:
public class Category { public int IdCategory { get; set; } public string Name { get; set; } } public class Product { public string IdProduct { get; set; } public int IdCategory { get; set; } public string Description { get; set; } } class Pro... 阅读全文
摘要:
语法解释:1. $("#select_id").change(function(){//code...}); //为Select添加事件,当选择其中一项时触发2. var checkText=$("#select_id").find("option:selected").text(); //获取Select选择的Text3. var checkValue=$("#select_id").val(); //获取Select选择的Value4. var checkIndex=$("#select_id &qu 阅读全文
摘要:
create table Cart( [UserID] uniqueidentifier not null, [ProductID] int not null, [ProductName] varchar(80) not null, [Price] [decimal](10, 2) NOT NULL, [ImagePath] [varchar](100) NULL, Quantity int not null, IsAnonymous bit not null)alter table Cartadd constraint [PK_Cart] primary key CLUSTERED([USe 阅读全文