加载中
golang实现的简单文件上传服务

package main import ( "encoding/json" "io" "math/rand" "net/http" "os" "strconv" "strings" "time" ) const POS = "." const DIR = "/" const PATH = "image" const HTTP =......

2019/07/12 10:33
3.1K
php实现一致性hash算法|crc32|md5

<?php class ConsistentHash{ private $virtual = 10; protected $serverList = array(); protected $serverNode = array(); protected function getHash($key){ return sprintf("%u",......

PHP
2019/03/04 14:18
43
jQuery select2使用记录

ajax输出数据的格式必须为:[{"id":1,"txt":"content},{"id":2,"txt":"datalist"}] jQuery(function (){ $("#data").select2({ ajax: { url: "json.php", dataType: "json", delay......

2019/02/14 17:50
243
jQuery file upload

jQuery(function () { var uploader = $('input#uploader').fileupload({ url: App.base.setURL('upload', 'image'), type: 'POST', dataType: 'json', previewMaxWidth: 100, ......

Facebook Key Hashes 生成

假如签名文件为debug.keystore 那么我们可以把debug.keystore文件拷贝到keytool所在目录下 首先运行如下 keytool -exportcert -alias thisisaliasname -keystore debug.keystore > d:\opens...

2018/06/14 18:15
25
简单AES加密解密

/* * 如果是ECB模式,则不需要iv向量 */ class Server extends BaseServer{ public static $instance = NULL; public static function getInstance(){ if(self::$instance){ return self:......

2018/05/18 13:46
86
JS postMessage窗口消息传递

window.parent.postMessage(message, origin)

jquery form serializeArray集合与对象

serialize serializeArray

2017/05/05 18:46
190
selinux配置

chcon

2017/04/24 19:16
10

没有更多内容

加载失败,请刷新页面

返回顶部
顶部