摘要: Asp.net 内置对象 1.Session当客户第一次请求网页,session创建。当客户最后一次请求页面,一段时间后,session销毁。默认30分钟。 一般存用户信息,即登陆成功后,在session中存储用户信息。在注销时清空。每个用户使用唯一的Session 2.application: 应 阅读全文
posted @ 2018-03-11 16:33 ggsmdaa 阅读(212) 评论(0) 推荐(0) 编辑
摘要: em详解 em可以理解成“倍”。 em会以父级元素中所设置的字体像素值为基准值进行成倍放大; 字体大小=(父级元素中的字体像素 * em的值) 例: 网页部分代码如下: 1.我现在没有在父级元素中设置任何字体像素值,而直接在<h2>标签中设置了字体大小为“3em”。 此时将使用浏览器的默认设置(一般 阅读全文
posted @ 2018-03-06 11:05 ggsmdaa 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 【1】 Dealing with people is like digging for gold. When you go digging for an ounce of gold, you have to move tons of dirt to get an ounce of gold. But 阅读全文
posted @ 2018-03-06 08:36 ggsmdaa 阅读(589) 评论(0) 推荐(0) 编辑
摘要: 【1】 It is nice to be important, but it is more important to be nice. 【2】 What simple act of kindness could you show another person today? Decide now, 阅读全文
posted @ 2018-03-05 08:09 ggsmdaa 阅读(202) 评论(0) 推荐(0) 编辑
摘要: Today I’d like to talk about faith. With faith, you’ll go further and never be lost. Faith is free and available to all people at all times. Have fait 阅读全文
posted @ 2018-03-03 22:25 ggsmdaa 阅读(191) 评论(0) 推荐(0) 编辑
摘要: Everyone wants to be successful. Today I would like to share three simple key points of success. Number one is: Know what you are doing. Number two is 阅读全文
posted @ 2018-03-02 23:48 ggsmdaa 阅读(364) 评论(0) 推荐(0) 编辑
摘要: 【1】If you want something, give it away. 【2】When a farmer wants more seeds, he takes his seeds and gives them to the earth. When you want a smile, give 阅读全文
posted @ 2018-03-01 21:49 ggsmdaa 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 详解: 该数组中只有8个数字(arr.length),所以至少需要进行7遍(arr.length-1)排序。 第一遍排序需要进行7次比较(arr.length-1-i 注:此时i=0)。 第一遍比较完成后数组最末尾的值就为最大值了,所以第二遍就不再需要跟最末尾的数字比较了。 因此第二遍只需要进行6次 阅读全文
posted @ 2018-03-01 16:49 ggsmdaa 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 【1】Beauty is only skin-deep. Physical beauty can only be held fleetingly. Real beauty is much deeper and far greater. It is a life force, an energy, w 阅读全文
posted @ 2018-02-28 22:04 ggsmdaa 阅读(430) 评论(0) 推荐(0) 编辑
摘要: Math.Random()函数能够返回带正号的double值,该值大于等于0.0且小于1.0,即取值范围是[0.0,1.0)的左闭右开区间,返回值是一个伪随机选择的数,在该范围内(近似)均匀分布。 我们的目的是要取某范围内的整数,所以我们新定义一个Random函数。 给这个函数两个参数“from”, 阅读全文
posted @ 2018-02-27 17:28 ggsmdaa 阅读(213) 评论(0) 推荐(0) 编辑