码迷,mamicode.com
首页 >  
搜索关键字:i think i need a hou    ( 4897个结果
581. Shortest Unsorted Continuous Subarray
Problem : Given an integer array, you need to find one continuous subarray that if you only sort this subarray in ascending order, then the whole arra ...
分类:其他好文   时间:2020-04-29 23:08:17    阅读次数:65
Avoid catching exceptions inside atomic! You may need to manually revert model state when rolling back a transaction.
https://docs.djangoproject.com/en/3.0/topics/db/transactions/ You may need to manually revert model state when rolling back a transaction. The values ...
分类:其他好文   时间:2020-04-26 01:15:33    阅读次数:71
thinkphp5 验证码和自定义路由
首先使用Composer安装think-captcha扩展包: composer require topthink/think-captcha=1.* 模版内验证码的显示 <div>{:captcha_img()}</div> <div><img src="{:captcha_src()}" alt ...
分类:Web程序   时间:2020-04-25 17:33:13    阅读次数:87
thinkphp5 模型使用
模型会自动对应数据表,模型类的命名规则是除去表前缀的数据表名称,采用驼峰法命名,并且首字母大写。 namespace app\index\model; 设置数据表 use think\Model; class User extends Model{ // 设置当前模型对应的完整数据表名称 prote ...
分类:Web程序   时间:2020-04-25 17:28:34    阅读次数:93
No function matches the given name and argument types. You might need to add explicit type casts postgrepsql数据库
今天在写项目的时候,遇到了一个比价头疼的问题: ifnull............. No function matches the given name and argument types. You might need to add explicit type casts 现在公司用的是po ...
分类:数据库   时间:2020-04-24 22:16:00    阅读次数:156
thinkphp5 视图
如果你的控制器继承了\think\Controller类的话,则无需自己实例化视图类,可以直接调用控制器基础类封装的相关视图类的方法。 // 渲染模板输出return $this->fetch('hello',['name'=>'thinkphp']); 助手函数 return view('hell ...
分类:Web程序   时间:2020-04-24 14:41:24    阅读次数:73
解决Laravel错误1071 Specified key was too long的多种方法
If you are using MariaDB or an older version of MySQL, you need to place this code in your AppServiceProvider.php: use Illuminate\Support\Facades\Sche ...
分类:其他好文   时间:2020-04-24 09:11:06    阅读次数:225
thinkphp5 请求,变量
请求: 1、请求信息 如果要获取当前的请求信息,可以使用\think\Request类。 $request = Request::instance(); 也可以使用助手函数 $request = request(); 通过此类可以获取:获取URL信息;设置/获取 模块/控制器/操作名称;获取请求参数 ...
分类:Web程序   时间:2020-04-23 16:17:16    阅读次数:89
Leetcode 560 Subarry Sum Equals K
Leetcode 560 Subarry Sum Equals K Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equ ...
分类:其他好文   时间:2020-04-22 20:19:06    阅读次数:65
Java-IO流(1)
1、流的概念和作用 流:代表任何有能力产出数据的数据源对象或者是有能力接受数据的接收端对象<Thinking in Java> 流的本质:数据传输,根据数据传输特性将流抽象为各种类,方便更直观的进行数据操作。 作用:为数据源和目的地建立一个输送通道 IO流的分类 1.3.1、按数据流的方向分为 输入 ...
分类:编程语言   时间:2020-04-22 19:51:14    阅读次数:91
4897条   上一页 1 ... 17 18 19 20 21 ... 490 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!