1 $(document).ready(function () { 2 /*用正则表达式获取url传递的地址参数,split后获得地址数组*/ 3 bmap = new BMap.Map('mapcontainer'); 4 var point = new BMap.Point(116.404, ....
分类:
Web程序 时间:
2014-07-31 23:51:40
阅读次数:
264
Jquery实现div拖拽 New Document 这个可以拖动哦 ^_^ $("#question_pic").bind("click",function(event){ event.stopPropagation(); ...
分类:
Web程序 时间:
2014-07-31 23:47:10
阅读次数:
410
#include #include //std::bind返回函数对象void fun1(int a, int b){ std::cout func;//function可以存储函数指针对象,之前以为只能存储std::bind func = fun1; func(5, 6); ...
分类:
其他好文 时间:
2014-07-31 23:41:40
阅读次数:
180
Longest Common PrefixWrite a function to find the longest common prefix string amongst an array of strings.算法思路:思路:貌似木有什么捷径,逐个比较,遇到不同即断开。代码如下: 1 publi...
分类:
其他好文 时间:
2014-07-31 23:31:50
阅读次数:
231
Same TreeGiven two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally ide...
分类:
其他好文 时间:
2014-07-31 23:15:00
阅读次数:
201
Js中的函数声明是指下面的形式:functionfunctionName(){}这样的方式来声明一个函数,而函数表达式则是类似表达式那样来声明一个函数,如:varfunctionName=function(){}可能很多朋友在看到这两一种写法时会产生疑惑,这两种写法差不多,在应用中貌似也都是可行的,那他们有什..
分类:
Web程序 时间:
2014-07-31 21:15:58
阅读次数:
175
//
$(function () { // mousedown 鼠标按下
$("#btn1").mousedown(function () {
$("#btn1").val(parseInt($("#btn1").val()) + 1)
}) ...
分类:
其他好文 时间:
2014-07-31 20:59:53
阅读次数:
209
$(document).bind("contextmenu", function () {
return false;
});
$(document).bind("selectstart", function () {
return false;
});...
分类:
Web程序 时间:
2014-07-31 20:53:37
阅读次数:
218
Problem Description:
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they...
分类:
其他好文 时间:
2014-07-31 20:48:17
阅读次数:
215
$(".theme-colors > li > span").hover(function(e) { var t = $(this), n = $("body"); n.attr("class", "").addClass("theme-" + t....
分类:
其他好文 时间:
2014-07-31 20:35:37
阅读次数:
287