2016年11月18日

laravel 引入外部包 生成二维码

摘要: 在项目根目录下运行: composer require simplesoftwareio/simple-qrcode 1.3.* 在config/app.php中添加 SimpleSoftwareIO/QrCode/QrCodeServiceProvider::class 'QrCode' => S 阅读全文

posted @ 2016-11-18 19:12 小乔流水人家 阅读(235) 评论(0) 推荐(0)

php GD画条形码

摘要: class BarCode128 { const STARTA = 103; const STARTB = 104; const STARTC = 105; const STOP = 106; private $unit_width = 1; //单位宽度 缺省1个象素 private $is_set_height = false; private $width = -1;//35 privat... 阅读全文

posted @ 2016-11-18 18:31 小乔流水人家 阅读(184) 评论(0) 推荐(0)

按位反转

摘要: //PHP //32位还是64位 谨防溢出 function revse32int($a,$len)//len是要旋转的数字位数,从右侧起 { //$a = 0x18b 0b110001011 $len = 9 $tmp=$i=$j=0; for($i=0,$j=$len-1;$i>$i)&1) //不为0 $tmp|=(($a>>$i)&... 阅读全文

posted @ 2016-11-18 14:37 小乔流水人家 阅读(221) 评论(0) 推荐(0)

crc循环冗余校验

摘要: 循环冗余校验(Cyclic Redundancy Check, CRC)是一种根据网络数据包或电脑文件等数据产生简短固定位数校验码的一种散列函数,主要用来检测或校验数据传输或者保存后可能出现的错误。它是利用除法及余数的原理来作错误侦测的。 阅读全文

posted @ 2016-11-18 14:33 小乔流水人家 阅读(243) 评论(0) 推荐(0)

javascript禁用回车键 防止回车表单提交

摘要: 阅读全文

posted @ 2016-11-18 11:24 小乔流水人家 阅读(238) 评论(0) 推荐(0)

导航