码迷,mamicode.com
首页 >  
搜索关键字:element    ( 12012个结果
OpenCV官方文档学习记录(8)
腐蚀和膨胀效果主要使用erode(src, dst, element);和dilate(src, dst, element);这两个函数:示例代码: 1 #include 2 #include 3 #include 4 5 #pragma comment( linker, "/subsyst...
分类:其他好文   时间:2014-12-06 12:44:32    阅读次数:189
Chrome退出全屏问题
最近做了一个号称很炫的B/S展示软件,展示所用浏览器为Google Chrome。要求展示时全屏,但是页面要有退出全屏按钮(液晶屏没有键盘)。搜索实现方式几乎前篇一律,即两个JS函数一个实现全屏一个退出全屏:function requestFullScreen(element){ if (el...
分类:其他好文   时间:2014-12-06 01:23:10    阅读次数:271
【LeetCode】Find Peak Element (3 solutions)
Find Peak ElementA peak element is an element that is greater than its neighbors.Given an input array wherenum[i] ≠ num[i+1], find a peak element and ...
分类:其他好文   时间:2014-12-05 23:55:39    阅读次数:220
Single Number | LeetCode OJ 解题报告
题目网址:https://oj.leetcode.com/problems/single-number/题目描述:Given an array of integers, every element appears twice except for one. Find that single one....
分类:其他好文   时间:2014-12-05 22:34:16    阅读次数:248
LeetCode[Array]: Find Peak Element
A peak element is an element that is greater than its neighbors. Given an input array where num[i] ≠ num[i+1], find a peak element and return its index. You may imagine that num[-1] = num[n] = -∞. ...
分类:其他好文   时间:2014-12-05 21:25:52    阅读次数:198
获取样式getComputedStyle
大家都知道,用document.getElementById(‘element').stylexxx可以获取元素的样式信息,可是它获取的只是DOM元素style属性里的样式规则,对于通过class属性引用的外部样式表,就拿不到我们要的信息了。 DOM标准里有个全局方法getComputedStyle...
分类:其他好文   时间:2014-12-05 19:11:50    阅读次数:158
HTML5 学习笔记 1
1.音频、视频 1 2 3 4 5 6 7 8 Your browser does not support the audio element. 9 10 11 12 1 2 3 4 5 6 播放/暂停 7 大 8 中 9 小10 11...
分类:Web程序   时间:2014-12-05 15:27:08    阅读次数:347
添加和移除事件处理兼容各浏览器的封装(带详细注释)
//事件处理兼容各种浏览器,采用能力检测方法,所谓能力检测,就是有能力就做,没有能力就不做 //定义一个处理事件的对象,兼容各种浏览器,dom2级事件处理和ie事件,如果这两个事件都不兼容,就采用dom0级处理 var eventUtil ={ addEvent:function(element,type,handler){ if (element....
分类:其他好文   时间:2014-12-04 23:21:15    阅读次数:471
Remove Duplicates from Sorted List
本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/41728739 Given a sorted linked list, delete all duplicates such that each element appear only once. For example, Given 1->1->2, return 1->2. Given 1->1->2->3->3, return 1->2->3. 思路: (1...
分类:其他好文   时间:2014-12-04 21:44:57    阅读次数:185
xml装成json格式
function xmlToJson(xml) { // Create the return object var obj = {}; if (xml.nodeType == 1) { // element // do attributes if (xml.attributes.length > 0) { ...
分类:Web程序   时间:2014-12-04 18:01:16    阅读次数:175
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!