jQuery.extend({ type: function( obj ) { if ( obj == null ) { return String( obj ); } // Support: Safari <= 5.1 (fun...
分类:
Web程序 时间:
2015-01-24 12:50:15
阅读次数:
176
-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
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
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默认都是抛出 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
...这里的程序,首先执行
function fun()//这个函数在body标签构造之前,实例化,但里面程序不会自动执行
{
构造了body里的标签之后,在事件发生时执行
}
wiondow.onload=function()
{
构造了body里...
分类:
编程语言 时间:
2015-01-21 11:34:07
阅读次数:
225
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