07 2012 档案

摘要:js打开新页面,非window.open()<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title>无标题页</title></head><body> <div> <div onclick="openpage('http://www.baidu.com')">测试dom</div> </div></body& 阅读全文
posted @ 2012-07-30 13:50 WebApi 阅读(1403) 评论(0) 推荐(0) 编辑
摘要:修改Web.Config文件: <?xml version="1.0" > <configuration> <system.web> <httpRuntime maxRequestLength="512000" useFullyQualifiedRedirectUrl="true" executionTimeout="300"/> </system.web> </configuration> 我这里时间设置的是300,就是300秒。五分钟,这样 阅读全文
posted @ 2012-07-26 11:02 WebApi 阅读(901) 评论(0) 推荐(0) 编辑
摘要:测试sql语句执行时间,备档用的新建表:pagetest--添加数据declare @i intset @i=0while(@i<90000)begin insert into pagetest select cast(floor(rand()*10000) as int),left(newid(),10),getdate() set @i=@i+1end--测试速度declare @begin_date datetimedeclare @end_date datetimedeclare @tab table(id int)select @begin_date = getdate(... 阅读全文
posted @ 2012-07-13 14:30 WebApi 阅读(229) 评论(0) 推荐(0) 编辑
摘要:在IE6下,如果拖动的DOM元素使用了背景图,在Drag的过程中会出现严重的鼠标抖动现象.更常见的是当鼠标滑过元素,如果元素背景图片变换时,会出现图片变换时的闪烁。这是因为:IE6下默认不缓存背景图片,CSS里每次更改图片的位置时都会重新发起请求.可用如下方法来解决(让IE6缓存背景图片 ):在head区(即<head>到</head>之间 添加以下js代码:<!--[if IE 6]><script type="text/javascript">document.execCommand("BackgroundIma 阅读全文
posted @ 2012-07-12 10:13 WebApi 阅读(521) 评论(0) 推荐(0) 编辑
摘要:1.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。2.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如:select id from t where num is null可以在num上设置默认值0,确保表中num列没有null值,然后这样查询:select id from t where num=03.应尽量避免在 where 子句中使用!=或<>操作符,否则将引擎放弃使用索引而进行全表扫描。4.应尽量避免在 where 子句中使用 or 来连接条件,否则将导致引擎 阅读全文
posted @ 2012-07-06 12:05 WebApi 阅读(211) 评论(0) 推荐(0) 编辑

CopyRight © 博客园 WebAPI
点击右上角即可分享
微信分享提示