码迷,mamicode.com
首页 > 2015年03月08日 > 全部分享
addEventListener的第二个参数——listener
addEventListener()方法是将指定的事件监听器注册到目标对象上,当该对象触发指定的事件时,指定的回调函数就会被执行。语法:element.addEventListener(type, listener[, useCapture]);其中listener:当指定的事件类型发生时被通知到的...
分类:其他好文   时间:2015-03-08 21:23:05    阅读次数:227
ZOJ2971 Give Me the Number 【模拟】
这道题目使用Map。 然后一次性遍历下来即可。 QAQ注意初始化的时候小心点不要错..Source Code://#pragma comment(linker, "/STACK:16777216") //for c++ Compiler#include #include #include #incl...
分类:其他好文   时间:2015-03-08 21:23:54    阅读次数:134
Java:类加载器(ClassLoader)
听上去很高端,其实一般自定义类加载器不需要用户去实现解析的过程,只要负责实现获取类对应的.class字节流部分就ok了,摘录深入理解Java虚拟机的一段话虚拟机设计团队把类加载阶段中的“通过一个类的全限定名来获取描述此类的二进制字节流”这个动作放到Java虚拟机外部去实现,以便让应用程序自己决定如何...
分类:编程语言   时间:2015-03-08 21:22:11    阅读次数:154
WIN7 下配置JAVA 环境变量
参考资料:http://www.cnblogs.com/zhj5chengfeng/archive/2013/01/01/2841253.html
分类:编程语言   时间:2015-03-08 21:23:39    阅读次数:116
验证手机格式
/** * 验证手机格式 */ public static boolean isMobileNO(String mobiles) { /* 移动:134、135、136、137、138、139、150、151、157(TD)、158、159、187、188 联通:130、131、132、...
分类:移动开发   时间:2015-03-08 21:23:46    阅读次数:167
宏定义#define
#include #define exchange(a,b){\int t;\t=a;\a=b;\b=t;\}int main(int arge,char *argv){int a=2,b=3;printf("交换前a=%d,b=%d",a,b);exchange(a,b);printf("交换后a...
分类:其他好文   时间:2015-03-08 21:23:07    阅读次数:133
Reverse Bits
uint32_t reverseBits(uint32_t n) { int k = 0; uint32_t result = 0; while(n){ result+=((n%2)>=1; k++; } return result;}
分类:其他好文   时间:2015-03-08 21:21:29    阅读次数:137
hihoCoder #1110 Regular Expression
Problem:DescriptionYour task is to judge whether the input is a legal regular expression.A regular expression is defined as follow:1: 0 and 1 are both...
分类:其他好文   时间:2015-03-08 21:20:11    阅读次数:199
计算机是如何工作的---linux内核学习笔记(一)
---恢复内容开始---内容一:实验报告相关说明。真实姓名谢润帮原创作品转载请注明出处所学课程:《Linux内核分析》MOOC课程链接:http://mooc.study.163.com/course/USTC-1000029000虚拟实验室实验截图内容二:汇编代码的工作过程中堆栈的变化分析分析分两...
分类:系统相关   时间:2015-03-08 21:21:18    阅读次数:255
Plus One
Plus One问题:Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant ...
分类:其他好文   时间:2015-03-08 21:22:25    阅读次数:123
HDU 5184
卡特兰数的一个变形而已。一个经典的习题变过来的:n+m个人排队买票,并且满足,票价为50元,其中n个人各手持一张50元钞票,m个人各手持一张100元钞票,除此之外大家身上没有任何其他的钱币,并且初始时候售票窗口没有钱,问有多少种排队的情况数能够让大家都买到票。此时答案是:反过来考虑就是,把右括号看成...
分类:其他好文   时间:2015-03-08 21:22:36    阅读次数:202
C#_winform_DataGridView_的18种常见属性
C#winformDataGridView属性说明① 取得或者修改当前单元格的内容② 设定单元格只读③ 不显示最下面的新行④ 判断新增行⑤ 行的用户删除操作的自定义⑥ 行、列的隐藏和删除⑦ 禁止列或者行的Resize⑧ 列宽和行高以及列头的高度和行头的宽度的自动调整⑨ 冻结列或行⑩ 列顺序的调整? ...
分类:Windows程序   时间:2015-03-08 21:21:57    阅读次数:186
Remove Duplicates from Sorted Array II
Remove Duplicates from Sorted Array II问题:Follow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?For example,Given sorted array ...
分类:其他好文   时间:2015-03-08 21:19:36    阅读次数:132
Android应用性能优化笔记
Java代码优化缓存结果: 如果计算代价过高,最好把过去的结果缓存起来。伪代码如下: result=cache.get(n); //输入参数n作为键 if(result==null) ...
分类:移动开发   时间:2015-03-08 21:22:15    阅读次数:154
Android 知识图谱
转载自:http://blog.csdn.net/xyz_lmn/article/details/41411355
分类:移动开发   时间:2015-03-08 21:20:35    阅读次数:136
小希的迷宫
Description上次Gardon的迷宫城堡小希玩了很久(见Problem B),现在她也想设计一个迷宫让Gardon来走。但是她设计迷宫的思路不一样,首先她认为所有的通道都应该是双向连通的,就是说如果有一个通道连通了房间A和B,那么既可以通过它从房间A走到房间B,也可以通过它从房间B走到房间A...
分类:其他好文   时间:2015-03-08 21:21:32    阅读次数:136
Linked List Cycle II
Linked List Cycle II问题:Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it withou...
分类:其他好文   时间:2015-03-08 21:21:21    阅读次数:159
1242条   上一页 1 ... 11 12 13 14 15 16 17 ... 74 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!