1.需求 ci无法加载css和js文件. 2.解决 删除..htaccess文件。 在config目录下配置base_url,并传给页面 参考资料:http://fc-lamp.blog.163.com/blog/static/174566687201332635454328/ ...
分类:
Web程序 时间:
2017-01-07 17:53:31
阅读次数:
198
//执行导出Excel function exporder () { $_GET=array_merge($_GET,$_POST);$_POST=array_merge($_GET,$_POST); if(strlen(I('orderid'))>0) { $where['orderid']=ar ...
分类:
Web程序 时间:
2017-01-07 14:02:18
阅读次数:
228
public function update(UpdateAppointmentRequest $request) { try { $data = array_filter($request->only(['user_id','status','note'])); $appointment = $t... ...
分类:
其他好文 时间:
2017-01-07 13:04:57
阅读次数:
157
1 <?php 2 3 class Multiton 4 { 5 private static $conn = []; 6 7 private function __construct() 8 { 9 10 } 11 12 private function __clone() 13 { 14 15 ...
分类:
其他好文 时间:
2017-01-07 10:02:40
阅读次数:
133
原题链接在这里:https://leetcode.com/problems/minimum-moves-to-equal-array-elements/ 题目: Given a non-empty integer array of size n, find the minimum number of ...
分类:
其他好文 时间:
2017-01-07 09:54:52
阅读次数:
220
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, ...
分类:
其他好文 时间:
2017-01-07 09:08:10
阅读次数:
175
1 "no-alert": 0,//禁止使用alert confirm prompt 2 "no-array-constructor": 2,//禁止使用数组构造器 3 "no-bitwise": 0,//禁止使用按位运算符 4 "no-caller": 1,//禁止使用arguments.call... ...
分类:
其他好文 时间:
2017-01-07 07:56:04
阅读次数:
183
Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maxim ...
分类:
其他好文 时间:
2017-01-07 07:53:17
阅读次数:
154
数组算法:1),复制算法: 例如:(int[] a={1,2,3,4,5,}; int[] b=new int[a.length];//b的长度由a的长度来决定; for(int i=0;i<a.length;i++){//写a.length或者写b.length都可以。长度一样; a[i]=b[i ...
分类:
编程语言 时间:
2017-01-07 01:33:26
阅读次数:
226
controller:$info=array('error'=>0,'msg'=>'');if($user_info){ if($user_info['is_lock']){ $info['error']=1; $info['msg']='该账户已被锁定'; $this->ajaxReturn($i ...
分类:
Web程序 时间:
2017-01-07 00:56:56
阅读次数:
231