码迷,mamicode.com
首页 >  
搜索关键字:array    ( 29504个结果
CI模板加载css和js
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
PHPEXCEL
//执行导出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
Update Request
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
LeetCode Minimum Moves to Equal Array Elements
原题链接在这里: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
Leetcode 75. Sort Colors
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
ESLint规则配置说明
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
Leetcode 45. Jump Game II
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
ajaxReturn
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!