码迷,mamicode.com
首页 >  
搜索关键字:element    ( 12012个结果
LeetCode——Single Number
Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement it without using e...
分类:其他好文   时间:2014-06-24 23:30:08    阅读次数:278
LeetCode: Best Time to Buy and Sell Stock III [123]
【题目】 Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may complete at most two transactions. Note: You may not engage in multiple transactions at the same time (i...
分类:其他好文   时间:2014-06-24 23:28:43    阅读次数:223
Regular Expression Matching
题目 Implement regular expression matching with support for '.' and '*'. '.' Matches any single character. '*' Matches zero or more of the preceding element. The matching should cover the ent...
分类:其他好文   时间:2014-06-24 18:43:56    阅读次数:224
增强的for循环(或foreach)
增强的for循环(也称为foreach循环):不用下标变量,顺序的访问整个数组。不能以其他顺序访问数组,或者改变数组的元素。 for(elementType element: arrayRefVar){} emement必须声明为与数组中元素相同的数据类型 增强for循环只能用在数组和实现Iterator接口的集合类(Collection以及其子类(hashmap,linklist,...
分类:其他好文   时间:2014-06-24 18:31:34    阅读次数:182
Raphael.js API之Raphael.pathIntersection(),aphael.pathToRelative(),Set.clear(),Set.exclude(element)
/*API-141*/Raphael.pathIntersection(path1, path2)获取两条线的交点参数列表:path1 字符串类型 路径的字符串表达形式path2 字符串类型 路径的字符串表达形式返回值:交点集合,格式如下:[{ x: //number类型 点的x坐标 y: //nu...
分类:Windows程序   时间:2014-06-24 15:17:00    阅读次数:233
jquery data方法获取某个元素上事件
获取某个元素上的事件,jquery的给元素绑定的事件可以用data方法取出来.通过$(element).data("events")来获取// 比如给一个button绑定两个click事件$("button").click(function() { alert("1") });$("button")...
分类:Web程序   时间:2014-06-24 11:26:51    阅读次数:276
Leetcode:Jump Game 跳跃楼梯
Jump Game:Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents y...
分类:其他好文   时间:2014-06-22 23:11:57    阅读次数:310
Raphael.js API 之Element.remove(),Element.removeData(),paper.text(),Element.node(),Element.onDragOver
/*API-38*/ Element.remove() 删除某个元素对象,无返回值 /*API-39*/ Element.removeData([key]); 删除某个key的value值,如果没有特殊说明则删除所有的元素数据 参数列表: key     可选参数     字符串类型     key 返回值:元素对象 /*API-105*/ 在画布上添加一个字符串,如果...
分类:Windows程序   时间:2014-06-22 17:55:38    阅读次数:296
Android第五期 - 更新自己的apk本地与网络两种方法
首先是本地:ParseXmlService部分:packagecom.szy.update; importjava.io.InputStream; importjava.util.HashMap; importjavax.xml.parsers.DocumentBuilder; importjavax.xml.parsers.DocumentBuilderFactory; importorg.w3c.dom.Document; importorg.w3c.dom.Element; im..
分类:移动开发   时间:2014-06-22 09:58:58    阅读次数:407
jquery之获取某个元素上的事件
jquery的给元素绑定的事件可以用data方法取出来 通过$(element).data("events")来获取 // 比如给一个button绑定两个click事件 $("button").click(function() { alert("1") }); $("button").click(function() { alert("2") }); // 这个时候点...
分类:Web程序   时间:2014-06-22 00:28:22    阅读次数:226
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!