ScrollView由视窗区域(裁剪区域)和内容区域组成,内容区域叫innerContainer。 视窗区域范围:get/setContentSize 内容区域:get/setInnerContainerSize, ScrollView怎样排版?对ScrollView而言,innerContaine ...
分类:
其他好文 时间:
2016-12-03 15:17:56
阅读次数:
127
Given a non-negative number represented as a singly linked list of digits, plus one to the number. The digits are stored such that the most significan ...
分类:
其他好文 时间:
2016-12-03 15:10:46
阅读次数:
219
Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and not the ...
分类:
其他好文 时间:
2016-12-03 14:50:13
阅读次数:
153
目录 一、HTML5新增属性 1.1、contextmenu 1.2、contentEditable 1.3、hidden 1.4、draggable 1.5、data-* 1.6、placeholder占位属性 1.7、required必填属性 1.8、pattern正则属性 1.9、autofo ...
分类:
Web程序 时间:
2016-12-03 01:54:54
阅读次数:
297
题目描述 若一个数(首位不为0)从左到右读与从右到左读都是一样,这个数就叫做回文数,例如12521就是一个回文数。 给定一个正整数,把它的每一个位上的数字倒过来排列组成一个新数,然后与原数相加,如果是回文数则停止,如果不是,则重复这个操作,直到和为回文数为止。给定的数本身不为回文数。 例如:87则有 ...
分类:
编程语言 时间:
2016-12-03 01:26:24
阅读次数:
316
ASP.Net 1.1后引入了对提交表单自动检查是否存在XSS(跨站脚本攻击)的能力。当用户试图用<xxxx>之类的输入影响页面返回结果的时候,ASP.Net的引擎会引发一个 HttpRequestValidationExceptioin。默认情况下会返回如下文字的页面: 这是ASP.Net提供的一 ...
分类:
Web程序 时间:
2016-12-03 00:39:39
阅读次数:
224
使用Maven编译淘宝的TimeTunnel项目时遇到如下错误: [INFO] Scanning for projects...[ERROR] The build could not read 1 project -> [Help 1][ERROR][ERROR] The project com.t ...
分类:
其他好文 时间:
2016-12-02 22:01:54
阅读次数:
660
这是mongodb里面学习的关于性能的知识点,数据库的管理无非就是维护和优化。维护在于平时的功能维护,其中优化就包括慢查询和性能提高了。本次文章里面提到从索引建立到监控,比较全面的阐述了在mongodb的优化中需要的过程。希望对自己日后的工作提供方便查阅,也希望对大家有用。 ...
分类:
数据库 时间:
2016-12-02 13:53:08
阅读次数:
167
#!/usr/bin/env python # -*- coding: utf-8 -*- import asyncio import datetime import time from random import randint @asyncio.coroutine def factorial(n ...
分类:
其他好文 时间:
2016-12-02 13:41:15
阅读次数:
179