码迷,mamicode.com
首页 >  
搜索关键字:cp mv cat head    ( 57883个结果
JavaScript网站设计实践(二)实现导航栏当前所选页面的菜单项高亮显示
一、(一)中的代码还可以修改的地方。在(一)中,如果是运行在服务器下,如apache等,可以把head和navigation的div抽取出来,放置在另一个html文件里,然后在页面中,include进来。这样,当要对导航栏进行修改时,只需要修改一个文件,而不用修改所有相关的页面文件。不过,我这里没有...
分类:编程语言   时间:2014-05-19 19:01:55    阅读次数:388
JavaScript网站设计实践(二)实现导航栏当前所选页面的菜单项高亮显示
原文:JavaScript网站设计实践(二)实现导航栏当前所选页面的菜单项高亮显示一、(一)中的代码还可以修改的地方。在(一)中,如果是运行在服务器下,如apache等,可以把head和navigation的div抽取出来,放置在另一个html文件里,然后在页面中,include进来。这样,当要对导...
分类:编程语言   时间:2014-05-19 13:45:07    阅读次数:358
迭代器模式和组合模式混用
迭代器模式和组合模式混用前言 园子里说设计模式的文章算得上是海量了,所以本篇文章所用到的迭代器设计模式和组合模式不提供原理解析,有兴趣的朋友可以到一些前辈的设计模式文章上学学,很多很有意思的。在Head First 设计模式这本书中,也有说迭代和组合模式混用的方法,但是使用的语言是JAVA,实现起....
分类:其他好文   时间:2014-05-19 13:37:27    阅读次数:409
《DHCP服务器搭建》RHEL6
DHCP服务器:1、解析ip2、给客户端分配ip安装好dhcp软件包:刚装好dhcp服务软件包,系统默认是启动不起来的。3,dhcp服务的配置文件是没有的,需要cp模板:4、dhcp服务的配置文件几乎多数都为注释,有效行就这么几行:ddns-update-style interim; /*dhcp支...
分类:其他好文   时间:2014-05-18 19:21:42    阅读次数:392
LeetCode: Remove Nth Node From End of List [019]
【题目】 Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1->2->3->4->5, and n = 2. After removing the second node from the end, the linked list becomes 1->2->3->5. Note: Given n will ...
分类:其他好文   时间:2014-05-18 18:48:03    阅读次数:269
leetcode:3sum closet
题目:给一个数组和给定的目标值,要求在数组里找出三个元素,这三个元素的和最接近目标值,当然等于是最好的。 用3sum的方法,把判定条件作些修改。 int twoSum(vector &num, int start, int target) { if(num.size() = num.size()) return -target; int head = start; int t...
分类:其他好文   时间:2014-05-18 10:49:12    阅读次数:217
LeetCode: Swap Nodes in Pairs [023]
【题目】 Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4->3. Your algorithm should use only constant space. You may not modify the values in the list, only nodes it...
分类:其他好文   时间:2014-05-18 08:37:57    阅读次数:370
两个有序链表合并
好多人都是为了找实习、找工作,看看思路,手写下这个问题的代码。如果有机会还是最好真正调试一下,还是有很多细节需要注意的。不多说了,代码记录如下: Node* Merge(Node *h1,Node *h2) { Node *head,*pCurrent,*head1,*head2; head1 = h1; head2 = h2; if(head1==NULL) retu...
分类:其他好文   时间:2014-05-18 02:59:29    阅读次数:214
JS 引用
var arr1=[1,2,3,4];var arr2=arr1;arr2.push(5);console.log(arr1);//和arr2一样console.log(arr1==arr2);//trueconsole.log(arr1===arr2);//truefunction Cat(nam...
分类:Web程序   时间:2014-05-18 00:19:28    阅读次数:275
JS刷新窗口的几种方式
浮层内嵌iframe及frame集合窗口,刷新父页面的多种方法 弹出子页面 子窗口刷新父窗口 刷新以open()方法打开的窗口 刷新以winodw.showModelDialog()方法打开的窗口Javascript代码方法二 : 在Head中添加 在body中添加 在底部脚本中: reloa...
分类:Web程序   时间:2014-05-17 18:53:28    阅读次数:298
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!