2015年6月11日
摘要: 由于最近一直在做AngularJs的Rearch,所以就看了一些关于ng-view的国外博客.下面我会按照Asp.net的MVC框架搭建一个AngularJs的小Demo出来. 一.创建文件目录: A. Controller文件夹放ng-controller的代码 B.JS 放... 阅读全文
posted @ 2015-06-11 12:02 何氏小萌 阅读(185) 评论(0) 推荐(0)
  2015年5月8日
摘要: 默认栅格系统: bootstrap的默认栅格系统为12列。形成一个940px宽的容器,默认没有启用 响应式布局。如果加入响应式布局CSS文件,栅格系统会自动根据可视窗口的宽度从724px到1170px进行动态调整。在可视窗口低于767px宽的情况下,列将不再固定并且会在垂直方向堆叠。 简单布局:... 阅读全文
posted @ 2015-05-08 23:21 何氏小萌 阅读(236) 评论(0) 推荐(0)
  2015年4月26日
摘要: Given a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from left to right, level by level from leaf to root).For exa... 阅读全文
posted @ 2015-04-26 22:18 何氏小萌 阅读(119) 评论(0) 推荐(0)
摘要: Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the nearest le... 阅读全文
posted @ 2015-04-26 21:44 何氏小萌 阅读(149) 评论(0) 推荐(0)
摘要: Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.两个已经排序的链表... 阅读全文
posted @ 2015-04-26 17:47 何氏小萌 阅读(116) 评论(0) 推荐(0)
摘要: GivennumRows, generate the firstnumRowsof Pascal's triangle.For example, givennumRows= 5,Return[ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1]... 阅读全文
posted @ 2015-04-26 17:22 何氏小萌 阅读(106) 评论(0) 推荐(0)
摘要: House RobberYou are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint... 阅读全文
posted @ 2015-04-26 16:46 何氏小萌 阅读(169) 评论(0) 推荐(0)
摘要: Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the depth... 阅读全文
posted @ 2015-04-26 16:08 何氏小萌 阅读(160) 评论(0) 推荐(0)
  2015年4月23日
摘要: 看到第十章,依照书上的规范成功写出了一个动态的位置转换。本书的例子虽然简单,但是重要的是其中所含的思想。 1 function moveElement(elementID,finaX,finaY,interval) 2 { 3 if(!document.getElementById)retu... 阅读全文
posted @ 2015-04-23 23:03 何氏小萌 阅读(442) 评论(0) 推荐(0)
  2015年4月7日
摘要: 原理:IP搜索路由表:1.搜索匹配的主机。2.搜索匹配的网络地址。3.搜索默认表项。路由表:G:区分了直接路由(G)和间接路由(不含G) H:目的地址是一个完整的主机地址/网络地址。主机地址必须与目的地址完全匹配。网络地址只需匹配目的地址的网络和子网号匹配。 D:ICMP返回报文。主机路... 阅读全文
posted @ 2015-04-07 23:12 何氏小萌 阅读(104) 评论(0) 推荐(0)