码迷,mamicode.com
首页 > 其他好文
父节点和子节点事件重复绑定(如click)
以click事件为例,当父节点或子节点绑定了click事件后,点击该节点,事件会发生冒泡传递,即会造成事件重复绑定,这时候需要阻止事件的冒泡,采用stopPropagation或cancelBubble等。stopPropagation() 方法定义和用法不再派发事件。终止事件在传播过程的捕获、目标...
分类:其他好文   时间:2014-08-08 23:54:06    阅读次数:344
pcduino通过USB方式刷机
最近买了块pcduino来玩,一开始也不知道怎么入手使用,就想先学着网上来刷机,可以用TF卡来刷机,也可以用U盘来刷机。由于手上只有优盘,所以采用了第二种方式。具体方法参考了网上。 本文非原创,原文来自:http://my.oschina.net/twinkling/blog/265472硬件要求....
分类:其他好文   时间:2014-08-08 23:53:56    阅读次数:385
公益图书馆-UserController-代码学习
1、我的捐书信息/** * @author Edwin * @description 显示捐书信息 */ public function donate() { $BookDB = D('Book'); //获取BOOK数据表对象,实例化 ...
分类:其他好文   时间:2014-08-08 23:53:46    阅读次数:264
Dr.Watson使用技巧摘要
Dr.Watson使用技巧摘要For Win98/WinME the executable is DRWATSON.EXEFor WinNT/Win2000/WinXP the executable is DRWTSN32.EXE (although DRWATSON.EXE is provided...
分类:其他好文   时间:2014-08-08 23:53:36    阅读次数:394
[leetcode]Binary Tree Level Order Traversal II
Binary Tree Level Order Traversal IIGiven a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from left to right, level...
分类:其他好文   时间:2014-08-08 23:53:16    阅读次数:221
asdfasdf
1 /* HelloWorld.java2 */3 4 public class HelloWorld5 {6 public static void main(String[] args) {7 System.out.println("Hello World!");8 ...
分类:其他好文   时间:2014-08-08 23:52:56    阅读次数:239
零散知识点
1.引用传递参数ref static void Main(string[] args) { int n1 = 10, n2 = 20; Swap(ref n1,ref n2); Console.WriteL...
分类:其他好文   时间:2014-08-08 23:52:36    阅读次数:439
C中读取键盘码
键盘码在底层开发中经常用到,有时候我们会忘记它们,就要急急忙忙的去找 键-码 对照表查看,其实程序可以自己打印出 键-码 对应值#include #include int main(void) { int key, modifiers; while ((key=bioskey(0))...
分类:其他好文   时间:2014-08-08 23:52:18    阅读次数:339
Remove Duplicates from Sorted Array
Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't mat...
分类:其他好文   时间:2014-08-08 23:52:12    阅读次数:238
字符串匹配算法
1. 朴素的匹配算法(暴力匹配) 寻找子串p在主串s中第pos个字符后的位置。 分别利用计数指针i和j指示主串s和子串p中当前待比较的字符。算法的基本思想是:从主串s的第pos个字符起和模式的第一个字符比较,如果相等,继续逐个比较后续字符;否则从主串的下一个字符起,重新和模式的第一个字符比较。算法的...
分类:其他好文   时间:2014-08-08 23:51:51    阅读次数:350
easyui filter 过滤时间段
1$.extend($.fn.datagrid.defaults.filters,{2dateRange:{3init:function(container,options){4varc=$('').appendTo(container);5c.find('.d1,.d2').datebox();6...
分类:其他好文   时间:2014-08-08 23:51:37    阅读次数:680
poj 1151 Atlantis (离散化 + 扫描线 + 线段树)
题目链接题意:给定n个矩形,求面积并,分别给矩形左上角的坐标和右上角的坐标。分析: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #define LL __int64 8 #defi...
分类:其他好文   时间:2014-08-08 23:51:26    阅读次数:342
la----3695 City Game(最大子矩阵)
Bob is a strategy game programming specialist. In his new city building game the gaming environment is as follows: a city is built up by areas, in whi...
分类:其他好文   时间:2014-08-08 23:51:16    阅读次数:315
[leetcode]Binary Tree Level Order Traversal
Binary Tree Level Order TraversalGiven a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level).Fo...
分类:其他好文   时间:2014-08-08 23:51:06    阅读次数:265
[Camel Basics]
Define routes:Either using Spring xml or Java DSL.Spring xml: //to load the Java DSL routes defined in MyRouteBuilder class //to load the routes...
分类:其他好文   时间:2014-08-08 23:50:06    阅读次数:334
Evaluate Reverse Polish Notation
Evaluate the value of an arithmetic expression in Reverse Polish Notation.Valid operators are +, -, *, /. Each operand may be an integer or another ex...
分类:其他好文   时间:2014-08-08 23:49:56    阅读次数:314
本地建立SVN服务器
想在自己电脑上搭建SVN服务器,于是有以下步骤。首先明确SVN服务包括服务器和客户端,平时听到的TortoiseSVN就是一个客户端。首先下载两个软件,服务器端我使用的是VisualSVN,版本是VisualSVN-Server-2.7.7.msi,客户端是TortoiseSVN,版本是npp.6....
分类:其他好文   时间:2014-08-08 23:49:36    阅读次数:289
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!