inputjquery提交 $(function () { document.onkeydown = function (event) { var e = event || window.event || arguments.callee.ca...
分类:
Web程序 时间:
2015-10-30 12:19:35
阅读次数:
201
$(document).ready(function() { alert($(window).height()); //浏览器时下窗口可视区域高度 alert($(document).height()); //浏览器时下窗口文档的高度 alert($(document.body).heig...
分类:
Web程序 时间:
2015-10-30 12:07:04
阅读次数:
125
(function () { var openUrl = window.location.search; try { openUrl = openUrl.substring(1, openUrl.length); } catch (e) { } var i...
分类:
其他好文 时间:
2015-10-30 12:06:14
阅读次数:
198
硬件内部计时器精度 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
题目:
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
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
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
in:检测某一个属性是否属于这个对象(既可以检测私有的属性,也可以检测公有的属性) --> attr in obj 1、不管条件是否成立,在预解释的时候,判断体中的带var和function的都要进行预解释window下的预解释: var a; -->a=undefined 我们在全局作用域下声明....
分类:
编程语言 时间:
2015-10-30 02:00:19
阅读次数:
171