文档: -->遍历:$("li").each(function(){ alert($(this).html())});var ee=$("li");var len=ee.length;for(var i=0;i<len;i++) if( $("li").eq(i).is(":vis...
分类:
Web程序 时间:
2014-06-18 18:42:39
阅读次数:
175
本文转载至http://blog.csdn.net/cloudhsu/article/details/80876281. 选择xcode工程设定2. 选择target3. 选择Summary4. 拉到Linked Frameworks and Libraries的地方,按下+按键输入libxml并选...
分类:
移动开发 时间:
2014-06-18 15:35:28
阅读次数:
324
nginx作为一个高性能的HTTP服务器,网络的处理是其核心,了解网络的初始化有助于加深对nginx网络处理的了解,本文主要通过nginx的源代码来分析其网络初始化。从配置文件中读取初始化信息 与网络有关的配置命令主要有两个:listen和sever_name。首先先了解这两个命令的用法。li...
分类:
其他好文 时间:
2014-06-18 14:03:08
阅读次数:
220
上一篇已经实现了这个项目的整体的HTML和CSS:
HTML5 CSS3 经典案例:无插件拖拽上传图片 (支持预览与批量) (一)
这篇博客直接在上篇的基础上完成,最终效果:
效果图1:
效果图2:
好了,请允许我把图片贴了两遍,方便大家看效果了~
可以看出我们的图片的li的html其实还是挺复杂的,于是我把html文档做了一些修改:...
分类:
Web程序 时间:
2014-06-17 23:02:00
阅读次数:
248
//菜单下拉function menu(){ var oNav=document.getElementById('top-menu'); var aLi=oNav.getElementsByTagName('li'); for(var m=0;m<aLi.length;m++) { ...
分类:
其他好文 时间:
2014-06-17 19:47:29
阅读次数:
249
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.
Follow up:
Can you solve it without using extra space?
思路:由【Leetcode】Linked
List Cycle可知,利用一快一慢...
分类:
其他好文 时间:
2014-06-15 14:23:38
阅读次数:
288
处理这个问题还是挺复杂的,需要考虑很多边界的测试用例。我总体的思路是先用循环标记m前一个节点和n后边一个节点,把n后边的节点首先作为当前逆转节点的pre,然后循环n-m次完成所选节点部分的逆序,然后将标记的m节点前一个节点指向逆序后部分的头节点即可。要考虑各种特殊情况,另外考虑即可。code如下:...
分类:
其他好文 时间:
2014-06-15 13:44:17
阅读次数:
323
1 迭代,重要关系 p->right = s.top(); 1 class flat{ 2 public: 3 void flatten(TreeNode* root) { 4 if (root == NULL) return; 5 ...
分类:
其他好文 时间:
2014-06-14 16:50:41
阅读次数:
172
如果你将整型与浮点型一起使用,结果将被认为是Double类型: et anotherPi = 3 + 0.14159 // anotherPi 的类型是Double 上述代码中,3的值是没有明确说明类型,因此,根据剩余部分的浮点类型可以确定返回值为Double.Numeric Li...
分类:
移动开发 时间:
2014-06-14 16:20:47
阅读次数:
328
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.Follow up: Can you solve it without using extra space?比...
分类:
其他好文 时间:
2014-06-14 15:48:59
阅读次数:
217