码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
快速 排序 javascript实现
//快速排序 function QSort(L, low, high) { var pivot; while(low<high) { pivot = Partition(L, low, high);//将L一分为二 QSort(L, low, pivot - 1); low = pivot + 1; ...
分类:编程语言   时间:2016-06-28 23:37:40    阅读次数:182
判断是否是64位系统(之前那个是判断是否是64位进程不一样。注意区分)
#pragma region Includes#include <stdio.h>#include <windows.h>#pragma endregion #pragma region Is64BitOperatingSystem (IsWow64Process) //// FUNCTION: D ...
分类:系统相关   时间:2016-06-28 23:23:59    阅读次数:368
js中对象相关
对象的创建: var first=new Object(); var second={ a:"bbb", b:function(){...} } 对象的内容增加: first.name="aaa" first.talk=function(){...} 工厂模式: function createobj ...
分类:Web程序   时间:2016-06-28 22:13:23    阅读次数:190
ES6和ES5中数据结构的遍历
看了ES6就感觉各种数据结构的遍历方法好多好混乱,就写下来总结下,看看应用场景上有什么区别 Array: ES5: (1)Array.prototype.forEach(function(item,index,array){...}) (2)Array.prototype.map(function( ...
分类:其他好文   时间:2016-06-28 22:12:59    阅读次数:426
Delphi 编码转换 Unicode gbk big5(使用LCMapString设置区域后,再用API转换)
原文:http://blog.dream4dev.com/article.asp?id=17 function UnicodeEncode(Str: string; CodePage: integer): WideString;var Len: integer;begin Len := Length ...
分类:Windows程序   时间:2016-06-28 21:54:37    阅读次数:408
237. Delete Node in a Linked List
question: Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Supposed the linked list is 1 - ...
分类:其他好文   时间:2016-06-28 20:33:04    阅读次数:137
344.Reverse String
question: Write a function that takes a string as input and returns the string reversed. Example:Given s = "hello", return "olleh". answer: 交换字符串中的元素 ...
分类:其他好文   时间:2016-06-28 20:19:19    阅读次数:125
node.js request and response related
一取值post和get取值1)GET/test?name=fred&tel=0926xxx572app.get(‘/test‘,function(req,res){console.log(req.query.name);console.log(req.query.tel);});2)POST<formaction=‘/test‘method=‘post‘><inputtype=‘text‘name=‘name‘value=‘fred‘><inputtype..
分类:Web程序   时间:2016-06-28 18:49:43    阅读次数:139
COM的一些基本概念
Windows lets you share code at the binary level using DLLs. After all, that's how Windows apps function - reusing kernel32.dll, user32.dll, etc. But s... ...
分类:其他好文   时间:2016-06-28 18:19:02    阅读次数:220
PHP匿名函数的使用
function( $value ) use ( &$dealer ){ //someting.... } $value 为array_walk传给匿名函数的参数,参数值为array_walk遍历$dealer_id_arr的每一个数组项的值 use( &$dealer ) 传递给use的$deal ...
分类:Web程序   时间:2016-06-28 18:13:57    阅读次数:320
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!