码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
js事件--enter触发
inputjquery提交 $(function () { document.onkeydown = function (event) { var e = event || window.event || arguments.callee.ca...
分类:Web程序   时间:2015-10-30 12:19:35    阅读次数:201
Jquery 文档的各种高度和宽度
$(document).ready(function() { alert($(window).height()); //浏览器时下窗口可视区域高度 alert($(document).height()); //浏览器时下窗口文档的高度 alert($(document.body).heig...
分类:Web程序   时间:2015-10-30 12:07:04    阅读次数:125
H5 判断应用是否打开或是下载
(function () { var openUrl = window.location.search; try { openUrl = openUrl.substring(1, openUrl.length); } catch (e) { } var i...
分类:其他好文   时间:2015-10-30 12:06:14    阅读次数:198
精确计时MSVC
硬件内部计时器精度 US级别 #include<iostream> #include?"functional" #include?"windows.h" using?namespace?std; #include?<WinBase.h>?? long?long?calculateMS(std::function<void()>?process...
分类:其他好文   时间:2015-10-30 10:57:48    阅读次数:275
【LeetCode从零单刷】Kth Smallest Element in a BST
题目: Given a binary search tree, write a function kthSmallest to find the kth smallest element in it. Note:  You may assume k is always valid, 1 ≤ k ≤ BST's total elements. Follow up: Wh...
分类:其他好文   时间:2015-10-30 10:52:12    阅读次数:170
输入框的值改变的的时候就触发时间
$(function(){ var $value = $("#ti").val(); alert($value); $("#ti").keyup(function(){ if( $("#ti").val() != $value){ alert("改变了"); } $value = $("#ti".....
分类:其他好文   时间:2015-10-30 10:39:48    阅读次数:139
Longest Common Prefix
Write a function to find the longest common prefix string amongst an array of strings. class Solution { public: string longestCommonPrefix(vector& str...
分类:其他好文   时间:2015-10-30 09:20:08    阅读次数:165
Generate Parentheses - LeetCode
Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((()))...
分类:其他好文   时间:2015-10-30 07:06:46    阅读次数:174
课程笔记:——几个分析作用域的画图表示
例题一: var num = 10; var obj = { num: 20, fn: (function (num) { this.num *= 2; num += 10; ...
分类:其他好文   时间:2015-10-30 02:02:53    阅读次数:208
课程笔记:——javascript中的预解释2
in:检测某一个属性是否属于这个对象(既可以检测私有的属性,也可以检测公有的属性) --> attr in obj 1、不管条件是否成立,在预解释的时候,判断体中的带var和function的都要进行预解释window下的预解释: var a; -->a=undefined 我们在全局作用域下声明....
分类:编程语言   时间:2015-10-30 02:00:19    阅读次数:171
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!