码迷,mamicode.com
首页 >  
搜索关键字:fun    ( 10813个结果
JQuery type
jQuery.extend({ type: function( obj ) { if ( obj == null ) { return String( obj ); } // Support: Safari <= 5.1 (fun...
分类:Web程序   时间:2015-01-24 12:50:15    阅读次数:176
Erlang 中处理 register 重复注册
-module(demo).-compile(export_all).foo() -> receive after 100000 -> io:format("ok~n") end.main() -> register(name1, spawn(fun()...
分类:其他好文   时间:2015-01-23 22:58:38    阅读次数:233
生产者消费者
producer =coroutine.create(function () --生产者 while true do local x = io.read() --生产新的值 send(x) --发送给消费者 endend)fun...
分类:其他好文   时间:2015-01-22 20:12:38    阅读次数:148
vb6 调用 64位应用程序
Option ExplicitPrivate Declare Function LoadLibrary Lib "kernel32.dll" Alias "LoadLibraryA" (ByVal lpLibFileName As String) As LongPrivate Declare Fun...
分类:其他好文   时间:2015-01-22 17:07:15    阅读次数:294
Have Fun with Numbers (大数)
Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it we will obtain 2469135...
分类:其他好文   时间:2015-01-22 08:14:35    阅读次数:413
ThinkPHP 3.2.x 将异常发出头部改为 503 的方法
如果程序发生异常,thinkphp默认都是抛出 404 头。 ThinkPHP3.2.3相关代码: #/ThinkPHP/Library/Think/Think.class.php /** * 自定义异常处理 * @access public * @param mixed $e 异常对象 */ static public fun...
分类:Web程序   时间:2015-01-21 16:37:06    阅读次数:363
Web:javascript执行顺序
...这里的程序,首先执行 function fun()//这个函数在body标签构造之前,实例化,但里面程序不会自动执行 { 构造了body里的标签之后,在事件发生时执行 } wiondow.onload=function() { 构造了body里...
分类:编程语言   时间:2015-01-21 11:34:07    阅读次数:225
scala高阶函数总结
1、值函数将一个函数赋值给某个变量,此变量就是一个值函数scala>importscala.math._importscala.math._scala>valfun=sqrt_fun:Double=>Double=<function1>scala>fun(25)res19:Double=5.02、匿名函数无名称的函数,即为匿名函数,通常使用在函数的参数中scal..
分类:其他好文   时间:2015-01-20 18:36:35    阅读次数:170
模仿米折网商品图片自动翻页效果
function fun(){ $(".productimg").each(function() {//遍历所有图片 var othis = $(this),//当前图片对象 top = othis.offset().top - $(window).scr...
分类:其他好文   时间:2015-01-20 17:46:37    阅读次数:168
命令行窗口输出图案
#include "Graphic_fun.h" /* 功能:输出为 # # # # # # # # # # # # */ UINT32 Graphic_prismatic1( UINT32 u32_line, CHAR i8_m ) { UINT32 u32_i = 0u, u32_j = 0u; /* 上...
分类:其他好文   时间:2015-01-20 15:42:28    阅读次数:496
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!