摘要:
18个Laravel8数据库查询优化建议 原文:https://learnku.com/laravel/t/61384 如果应用运行缓慢或存在大量数据库查询,请按照以下性能优化提示来缩短应用的加载时间。 1. 检索大型数据集 本提示主要侧重于提高处理大型数据集时应用的内存使用率。 处理大的集合时,分 阅读全文
摘要:
参考:https://zhuanlan.zhihu.com/p/28948567 1、问题 不小心把缓存 stash(储藏)起来的代码删除了 sourcetree删除 命令行删除 $ git stash list #stash@{0}: On pine/test: test $ git stash 阅读全文
摘要:
原文:https://www.html5tricks.com/15-jquery-html5-image-player.html 阅读全文
摘要:
源码:https://github.com/pine007/source-codes/blob/main/html-css-js-手写简易轮播图.zip 1、效果 2、编码 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>轮播图 阅读全文
摘要:
原文:https://blog.csdn.net/qq_34466755/article/details/111411986 1、问题 img在div中会在底部产生额外的空隙 <body> <style> div { color: #fff; background-color: blue; } im 阅读全文
摘要:
array_map() 函数将用户自定义函数作用到数组中的每个值上,并返回用户自定义函数作用后的带有新值的数组 array_combine() 通过合并两个数组来创建一个新数组,其中的一个数组元素为键名,另一个数组元素为键值 //--需求:将二维索引数组转换为指定键名的关联数组 $data = [ 阅读全文
摘要:
原文:https://learnku.com/articles/62503 简单模式 第一种情况,我称之为传导关联表 国家有很多用户,用户有很多帖子 countries id - integer name - string users id - integer country_id - intege 阅读全文
摘要:
whereExists 方法允许你使用 where exists SQL 语句。whereExists 方法接收一个 闭包 作为参数,该闭包获取一个查询构建器实例,从而允许你定义放置在 「exists」 字句中的查询: $users = DB::table('users') ->whereExist 阅读全文
摘要:
原文:https://blog.csdn.net/m0_72200584/article/details/128075370 let array1 = [ { id:'1',name:'liuqiang' }, { id:'2',name:'zhaobo' } ] let array2 = [ { 阅读全文
摘要:
基本排序算法总结 原文:https://blog.csdn.net/qq_21187515/article/details/127212565 一直想总结一下最常用的排序算法,自己写一下代码并运行一下记忆更深刻 1、插入排序 说明 每步将一个待排序的记录,按其排序码大小,插到前面已经排序的文件中的适 阅读全文