摘要: //js 中的算术运算Math.pow(2,53) // => 9007199254740992: 2 的 53次幂 Math.round(.6) // => 1.0: 四舍五入 Math.ceil(.6) // => 1.0: 向上求整 Math.floor(... 阅读全文
posted @ 2015-07-20 18:23 刘满blog 阅读(179) 评论(0) 推荐(0) 编辑
摘要: //创建新表php artisan migrate:make create_表名_table --create=表名//填充数据php artisan db:seed//添加字段php artisan migrate:make add_添加信息_to_表名_table --table=表名//执行迁... 阅读全文
posted @ 2015-07-16 13:10 刘满blog 阅读(827) 评论(0) 推荐(0) 编辑
摘要: 获取基本输入信息: 1 //获取输入数据,不用担心所使用的HTTP方法 2 $id = Input::get('id'); 3 4 //可以指定默认值 5 $id = Input::get('id', 1); 6 7 //检测提交信息是否存在 8 if(Input::has('id')) 9 {... 阅读全文
posted @ 2015-07-16 12:59 刘满blog 阅读(390) 评论(0) 推荐(0) 编辑
摘要: php.ini中将max_execution_time = 30改为max_execution_time = 0 阅读全文
posted @ 2015-07-14 12:15 刘满blog 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 数据库地址不能写localhost要用127.0.0.1[mysqld]skip-name-resolve #取消dns解析skip-grant-tables#不需要密码thread_concurrency=8#CPU合数*2 阅读全文
posted @ 2015-07-14 12:05 刘满blog 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 1 public function fn1(){2 global $str;3 $str='liuman';4 function fn2(){5 echo $GLOBALS['str'];6 } 7 } 阅读全文
posted @ 2015-07-12 23:24 刘满blog 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 1 var fileObj = document.getElementById('file').files[0]; 2 // js 获取文件对象 3 var FileController = url; 4 // 接收上传文件的后台地址 5 6 // FormDat... 阅读全文
posted @ 2015-07-12 13:13 刘满blog 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 1 2 3 4 5 6 7 8 9 226 227 阅读全文
posted @ 2015-07-11 14:35 刘满blog 阅读(898) 评论(0) 推荐(0) 编辑
摘要: 1 var arrN = [[[1, "wangyuchu", 54, [123, 34, [123, 34, 16]]],"zhangsan", 25, [1, "wangyuchu", 54, [123, 34, [123, 34, [1, "wangyuchu", 54, [123, 34,... 阅读全文
posted @ 2015-07-11 14:14 刘满blog 阅读(3531) 评论(0) 推荐(0) 编辑
摘要: php 5.4http://xdebug.org/download.phpPHP 5.4 VC9 (64 bit)php_xdebug-2.2.6-5.4-vc9.dll拷贝到PHP的ext的目录中php.inidisplay_errors = Off 改 display_errors = on添加... 阅读全文
posted @ 2015-06-06 15:11 刘满blog 阅读(262) 评论(0) 推荐(0) 编辑