摘要:
打开一个网站,F12 以谷歌浏览器为例console输入:javascript:alert(document.lastModified) 如果弹出时间和你电脑时间一致,则该网页是伪静态/动态,反之则是静态、 比如csdn首页就是动态的 阅读全文
摘要:
<html><head><title>frame自适应</title></head><frameset rows="100%" border="0" framespacing="0" frameborder="0"> <frame name="main" src="http://www.qq.com 阅读全文
摘要:
1.在controller里获取路由参数: var controller = RouteData.Values["controller"];//action,id或其他路由参数同理 这种方式很常用,还有一种方式就是,直接在action上定义参数,通过模型绑定的方式获取: public Act 阅读全文
摘要:
1.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。 2.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如: select id from t where num is null 可以在 阅读全文