自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

noob的博客

Is a noob!

  • 博客(10)
  • 收藏
  • 关注

原创 PHP关闭Notice

个别页面关闭 Notice error_reporting(E_ALL^E_NOTICE); ?>

2017-07-05 09:57:24 300

原创 PHP防止精度丢失

转换防止精度丢失 类似:bcmul

2017-07-01 09:54:34 772

原创 mariadb root忘记密码修改

1.修改maria的登录设置: # vim /etc/my.cnf 在[mysqld]的段中加上一句:skip-grant-tables 例如: [mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock skip-grant-tables 保存并且退出vi。2.重新启动mariadb

2017-05-16 10:25:39 403

原创 centos mariadb(mysql)远程连接

1.新增一个数据库用户(root默认不开启远程连接)grant *  on 数据库名称.表名称 to '账号'@'允许连接地址' identified by '密码';2.远程连接指令grant select,insert,update on app_db.* to '账号'@'允许连接地址' identified by '密码';

2017-05-12 17:50:54 482

原创 手机WEB端相册调用

input id="upload" class="file" accept="image/jpg, image/jpeg, image/png" type="file" onchange="" />

2017-05-04 10:41:30 924

原创 String解析成数组

例:$alldata="1,2,3|4,5,6|7,8,9|"$arr[] = explode('|',$alldata);array_pop($arr[0]);foreach($arr[0] as $key => $val){ $arrtwo[$key] = explode(',',$arr[0][$key]); $userrate[$key]['a'] = $arr

2017-04-27 15:39:45 550

原创 多图FTP上传

//上传config$config=array( 'maxSize'=> 3145728,// 设置附件上传大小 'rootPath' =>"/agent/", 'exts' => array('jpg', 'gif', 'png', 'jpeg'), 'saveName' => array('uniqid',''));//ftp congf

2017-04-27 15:34:55 203

原创 JS from表单提交

//表单form method="post" action="" id="form" name="myform" >>//JSfunction yoo() { var formUrl = "{:U('index')}"; form.action = formUrl; form.submit();}//按钮yoo()'>

2017-04-20 17:14:48 340

原创 validate.js表单验证

记录

2017-04-14 13:59:14 253

原创 JS按钮调用倒计时

按钮调用time($("#id"), 60);方法如下:function time(o, wait) { if (wait == 0) { o.attr("disabled", false); o.val("重新获取验证码"); wait = 60; } else { o.attr("disabled",

2017-04-10 16:41:21 610

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除