码迷,mamicode.com
首页 >  
搜索关键字:function    ( 54714个结果
nodejs 文件上传
var multipart = require('connect-multiparty');var fs = require('fs');var multipartMiddleware = multipart();router.get('/uploadTest', function (req, re...
分类:Web程序   时间:2014-08-17 11:35:02    阅读次数:205
用于显示上个月和下个月_PHP
/** * 用于显示上个月和下个月 * @param int $sign 1:表示上个月 0:表示下个月 * @return string */ function GetMonth($sign="1"){ ...
分类:Web程序   时间:2014-08-17 08:07:11    阅读次数:257
JS类定义方式
// 方法1 对象直接量var obj1 = { v1 : "", get_v1 : function() { return this.v1; }, set_v1 : function(v) { this.v1 = v; }};obj1.se...
分类:Web程序   时间:2014-08-16 23:48:51    阅读次数:220
代码着色测试
#include void function(char *str) { char buffer[16]; strcpy(buffer,str); } int main() { char large_string[256]; int i; for( i = 0; i void function(cha...
分类:其他好文   时间:2014-08-16 22:28:11    阅读次数:170
Javascript 字符串组装用函数 format
if (!String.prototype.format) { String.prototype.format = function() { var args = arguments; return this.replace(/{(\d+)}/g, function(match, nu...
分类:编程语言   时间:2014-08-16 20:59:01    阅读次数:235
Jquery利用JSON数组创建表格
$(function () { var json = [ { "name": "张三", "age": "20", "gender": "男" }, { "name": "李四", "age": "21", "gend...
分类:Web程序   时间:2014-08-16 20:57:11    阅读次数:384
php 派生类 数据库连接 单例模式 xhprof实测 高效连接
、 <?php //要解决的问题?在一个方法中多次调用类? //多次调用父类相同的类 class?Pdoo?{ public?function?__construct(){} //这是个数据库的类 function?select($name)?{ echo?"正宗"?.?$name; ...
分类:数据库   时间:2014-08-16 18:37:01    阅读次数:194
JQuery根据Json创建表格
$(function () { var getjson = { "百度": "http://www.baidu.com", "新浪": "http://www.sina.com.cn", ...
分类:Web程序   时间:2014-08-16 18:29:10    阅读次数:253
转化图像大小和格式
function imageconverJPG( readdir ,QF)% 图像批量改大小函数% 输入参数:readdir 隿¦?改大小的图像懿?¨目录(要求只有图像文件,格式无懿°?)% 写入图像格式writetype = 'jpg';%质量因子%QF = 80;% 写入图像目录,直接附加在.....
分类:其他好文   时间:2014-08-16 18:26:50    阅读次数:222
ajax hash缓存
hash 模拟url路由function hashdone(){var hash;hash=(!window.location.hash)?"#one":window.location.hash;window.location.hash=hash;var hashStr = location.has...
分类:其他好文   时间:2014-08-16 17:03:40    阅读次数:212
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!