上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页
摘要: success:function(){ window.location.href="/enterprise/show"; } success:function(){ window.location.href="http://www.xxx.com/enterprise/show"; //错误.无法跳 阅读全文
posted @ 2016-06-01 15:17 小庄啊 阅读(2818) 评论(0) 推荐(0) 编辑
摘要: foreach($recomend_total as $k=>$v){ $flag[] = $v['applyitem_id']; } array_multisort($flag,SORT_ASC,$recomend_total); 遍历$recomend_total数组.取出需要排序的字段, <? 阅读全文
posted @ 2016-06-01 11:56 小庄啊 阅读(195) 评论(0) 推荐(0) 编辑
摘要: <?php $date = '2016-5-31';$time = '13:00';$large = date('H:i',strtotime('+30 minute',strtotime($time)));$little = date('H:i',strtotime('-30 minute',st 阅读全文
posted @ 2016-05-31 19:54 小庄啊 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 01 配置文件 return Array( 'URL_MODEL' => '2',); 02 index.php入口文件下面加入文件 .htaccess -->使用editplus-->另存为 <IfModule mod_rewrite.c>RewriteEngine onRewriteCond % 阅读全文
posted @ 2016-05-28 15:44 小庄啊 阅读(610) 评论(0) 推荐(0) 编辑
摘要: 思路 先打印所有返回值 console.log(d); {''status'':999} 再查看返回值,能否转换为json dataType:'json', //大小写敏感. datatype:'json', 无法转换成json格式.无法取出返回数据中的值 $('#cancelBtn').click 阅读全文
posted @ 2016-05-26 10:50 小庄啊 阅读(142) 评论(0) 推荐(0) 编辑
摘要: is_numeric() // numeric 数字的 floatval() 取出字符串中的数字. "98.26yuan" 取出98.26 intval() 取出字符串中数字(只取出整数部分) "100th" 取出100 preg_split() //以空格 分割字符串,成数组 //split 分离 阅读全文
posted @ 2016-05-24 14:21 小庄啊 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 注意点: 第三方类库,放置在Vendor目录下, 在controller里面直接引入. 注意1 引入包括文件名,必须大写开头 注意2 实例化类.必须加上斜杠.代表实例化的是当前目录的根目录 public function test( ) { vendor('baidupush.Test'); $t 阅读全文
posted @ 2016-05-17 17:48 小庄啊 阅读(207) 评论(0) 推荐(0) 编辑
摘要: <?php $arr = array( '0' => array('item' => array( 'aa' => 'aaa', 'bb' => 'bbb' )), '1' => array('item' => array( 'cc' => 'ccc', 'dd' => 'ddd' )), '2' 阅读全文
posted @ 2016-05-16 17:52 小庄啊 阅读(212) 评论(0) 推荐(0) 编辑
摘要: update `t_flight` set flight_price=floor(rand()*10000); update `t_flight` set flight_price=rand(); //零点几(6位小数点) 乘以十,向下取整.就是1到90.610935 0.279636 0.6382 阅读全文
posted @ 2016-05-14 13:08 小庄啊 阅读(180) 评论(0) 推荐(0) 编辑
摘要: <?php$host = 'localhost';$user = 'root';$pass = '';$dbname = 'test';$con = mysql_connect($host,$user,$pass) or die('can not connect to database'.mysql 阅读全文
posted @ 2016-05-13 16:08 小庄啊 阅读(255) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页