码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
百度地图多点路径加载以及调整页面js
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拖拽
Jquery实现div拖拽 New Document 这个可以拖动哦 ^_^ $("#question_pic").bind("click",function(event){ event.stopPropagation(); ...
分类:Web程序   时间:2014-07-31 23:47:10    阅读次数:410
std::function,std::bind复习
#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
[leetcode]Longest Common Prefix
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
[leetcode]Same Tree
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中函数声明与函数表达式的不同
Js中的函数声明是指下面的形式:functionfunctionName(){}这样的方式来声明一个函数,而函数表达式则是类似表达式那样来声明一个函数,如:varfunctionName=function(){}可能很多朋友在看到这两一种写法时会产生疑惑,这两种写法差不多,在应用中貌似也都是可行的,那他们有什..
分类:Web程序   时间:2014-07-31 21:15:58    阅读次数:175
mousedown与mouseup 【】keydown与keypress与keyup
// $(function () { // mousedown 鼠标按下 $("#btn1").mousedown(function () { $("#btn1").val(parseInt($("#btn1").val()) + 1) }) ...
分类:其他好文   时间:2014-07-31 20:59:53    阅读次数:209
js 阻断网页选中和右键
$(document).bind("contextmenu", function () { return false; }); $(document).bind("selectstart", function () { return false; });...
分类:Web程序   时间:2014-07-31 20:53:37    阅读次数:218
Leetcode--Two Sum
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
Cookie
$(".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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!