摘要:
DOM模型(documentobject model) •DOM解析器在解析XML文档时,会把文档中的全部元素。依照其出现的层次关系。解析成一个个Node对象(节点)。 •在dom中。节点之间关系例如以下: •位于一个节点之上的节点是该节点的父节点(parent) •一个节点之下的节点是该节点的子节 阅读全文
posted @ 2017-06-28 21:41
gccbuaa
阅读(186)
评论(0)
推荐(0)
摘要:
题意:求节点间的最大距离 先DFS一次 记录下 每一节点的子树下的最大距离(DP[ u ] [ 0 ])和第二大距离(DP[ u ] [ 1 ]) 用DP[ v ] [ 2 ] 表示由v的父节点来的最大距离 再取DP[ u ] [ 0 ] 与 DP[ u ][ 2 ] 的最值 #include <c 阅读全文
posted @ 2017-06-28 20:38
gccbuaa
阅读(142)
评论(0)
推荐(0)
摘要:
#import "WPTabBarController.h" #import "WPFirstViewController.h" #import "WPSecondViewController.h" #import "WPThirdViewController.h" #import "WPFourt 阅读全文
posted @ 2017-06-28 19:58
gccbuaa
阅读(168)
评论(0)
推荐(0)
摘要:
今天在公司遇到做一个移动端手指滑动的效果,刚開始用了swiper.js插件发现效果不好(文字存在模糊效果)。后来查了一些资料,自己手写了一个使用原生js写的滑动效果。 以下直接上代码: <!doctype html> <html lang="en"> <head> <meta charset="UT 阅读全文
posted @ 2017-06-28 19:28
gccbuaa
阅读(2619)
评论(0)
推荐(0)
摘要:
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or 阅读全文
posted @ 2017-06-28 18:43
gccbuaa
阅读(162)
评论(0)
推荐(0)
摘要:
效果 首先看下qq的效果图,点击菜单button后点退出就会出现如图的对话框. 从上图能够看出,该对话框有一个圆角,以及标题,提示信息,两个button,button颜色是白色,button点击后背景会变成灰色,正常状态下对话框的背景色是白色.而且除了点击取消button和返回键外,点击屏幕其它区域 阅读全文
posted @ 2017-06-28 18:07
gccbuaa
阅读(514)
评论(0)
推荐(0)
摘要:
程序中运行 "SELECT t.EVENT_TYPE_ID FROM RATABLE_EVENT_TYPE t WHERE t.NAME='帐期末费用转移事件'" 报错 错误码:1267 不合法的混合字符集。 错误信息:mix of collations (gbk_bin,IMPLICIT) and 阅读全文
posted @ 2017-06-28 16:31
gccbuaa
阅读(233)
评论(0)
推荐(0)
摘要:
简单介绍最早的内核包过滤机制是ipfwadm。后来是ipchains。再后来就是iptables/netfilter了。再往后,也就是如今是nftables。只是nftables与iptables还处于争雄阶段,谁能胜出眼下还没有定论。可是他们都属于netfilter项目的子成员。钩子 netfil 阅读全文
posted @ 2017-06-28 15:59
gccbuaa
阅读(530)
评论(0)
推荐(0)
摘要:
先从中找出性能最好的那个数, 在用钱比較少的去组合,能组出来就表明答案在mid的右边,反之在左边, #include<string.h> #include<map> #include<stdio.h> #include<iostream> #include<algorithm> using name 阅读全文
posted @ 2017-06-28 15:12
gccbuaa
阅读(189)
评论(0)
推荐(0)
摘要:
说道Python和多线程,非常easy想到GIL,GIL意味着仅仅要是用Python做的多线程程序。就无法利用多个CPU。 经过一些失败的尝试后,我也一度觉得GIL是无解的。我们甚至把注意力转向了IronPython等无锁Python,可是实际上那样问题可能很多其它。比方我们不熟悉mono,mono 阅读全文
posted @ 2017-06-28 14:26
gccbuaa
阅读(574)
评论(0)
推荐(0)

浙公网安备 33010602011771号