在默认情况下,FF和IE的解释标准是不一样的,也就是说,如果一个网页没有声明DOCTYPE,它就会以默认的DOCTYPE解释下面的HTML。在同
一种标准下,不同浏览器的解释模型都有所差异,如果声明标准不同,不用我说,您自己想就可以了。学习网页标准,浏览器兼容,从哪里开始您自己决定,但是, 请认识D...
分类:
Web程序 时间:
2014-05-23 12:50:15
阅读次数:
355
window.onload=function(){ //创建select var select1=
document.createElement("select"); select1.id="select1"; for(var i=0;i<5;i++){
...
分类:
Web程序 时间:
2014-05-23 12:23:36
阅读次数:
439
WM_CAP_DRIVER_CONNECT//ActiveX
---->OnCreatem_pit.Create(IDD_CAM_DIALOG,this);CRect
rc;this->GetClientRect(&rc);m_pit.m_cam.MoveWindow(&rc);m_pit.Show...
分类:
其他好文 时间:
2014-05-23 12:09:20
阅读次数:
570
Given a binary tree, find its maximum depth.The
maximum depth is the number of nodes along the longest path from the root node
down to the farthest le...
分类:
其他好文 时间:
2014-05-23 11:54:10
阅读次数:
317
插入排序伪代码:1 for j=2 to a.length2 key=a[j]3 i=j-14
while i>0 and a[i]>key5 a[i+1]=a[i]6 i=i-17 a[i+1]=key使用实例: 1 ...
分类:
其他好文 时间:
2014-05-23 11:20:43
阅读次数:
227
file_get_contents(PHP 4 >= 4.3.0, PHP
5)file_get_contents—将整个文件读入一个字符串说明?stringfile_get_contents(string$filename[,bool$use_include_path=
false[,resour...
分类:
其他好文 时间:
2014-05-23 11:14:47
阅读次数:
203
写这个帖子的缘由是因为在页面参数传到rails的controller时用params[:]和params[""]都可以取到值:[1] pry(#)>
params=> {"action"=>"show", "controller"=>"books", "id"=>"382"}[2]
pry(#)> ...
分类:
其他好文 时间:
2014-05-23 11:10:59
阅读次数:
307
public static class Extensions{public static
async Task ForEachAsync(this IEnumerable collection, Func> body, IObserver
observer = null){foreach (var ...
分类:
其他好文 时间:
2014-05-23 10:55:36
阅读次数:
213
下午在使用VS2012建立Service服务项目时,只要一切换到设计视图页面中,VS就崩溃重启,从网上找了一种方法来解决,测试可行。但导致该问题的原因未知。
解决方案:步骤1:开始-->所有程序-->Microsoft Visual Studio 2012-->Visual Studio To...
分类:
其他好文 时间:
2014-05-23 10:51:24
阅读次数:
302
var arr = [1,2,2,3,3,4,4,5,1];function getRepeat(
arr ){ var len = arr.length, map={}; for( var i = 0;i<len;i++ ){
if(!map[arr[i]]...
分类:
编程语言 时间:
2014-05-23 10:39:49
阅读次数:
285