会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
千逸山水
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
2021年6月28日
c++递归地输出vector的内容
摘要: 1 #include<iostream> 2 #include<vector> 3 using namespace std; 4 using std::vector; 5 6 using Iter = vector<string>::iterator; 7 8 void printStr(Iter
阅读全文
posted @ 2021-06-28 15:39 千逸山水
阅读(240)
评论(0)
推荐(0)
2021年3月30日
php文件上传时用到的函数
摘要: //设置脚本最大执行时间 set_time_limit(int $seconds) :bool //为一个配置选项设置值,成功时返回旧的值,失败时返回 false。 ini_set(string $varname, string $newvalue ) : string //设置应该报告何种 PHP
阅读全文
posted @ 2021-03-30 10:28 千逸山水
阅读(264)
评论(0)
推荐(0)
2021年3月26日
TCP/IP Illustrated, Volume 1: The Protocols 第一章 学习笔记
摘要: Chapter 1 Introduction 有效的交流基于使用同一种语言,这是人类和其他动物的规律,计算机也是如此, 当一组通用行为与一种通用语言一起使用时,将使用一个协议。根据New Oxford American Dictionary第一次对协议做出的定义,用官方的程序或者系统的规则来管理国家
阅读全文
posted @ 2021-03-26 16:49 千逸山水
阅读(467)
评论(0)
推荐(0)
2021年3月17日
初学go时的问题 panic: runtime error: invalid memory address or nil pointer dereference
摘要: panic: runtime error: invalid memory address or nil pointer dereference 场景:在做练习时遇到了指针的问题,没有给指针分配地址,就直接给指针赋值 Q:定义结构体 Address 和 VCard,后者包含一个人的名字、地址编号、出生
阅读全文
posted @ 2021-03-17 10:10 千逸山水
阅读(1819)
评论(0)
推荐(0)
2020年8月4日
php 对页面上的标签或按钮置灰
摘要: 对页面上的按钮进行置灰处理,用户不可点击,可以这样做 $(".btn-plus").attr("disabled",true).css("pointer-events","none"); 用jQuery选择器选择到你要置灰的标签过按钮 然后就可以了
阅读全文
posted @ 2020-08-04 09:57 千逸山水
阅读(244)
评论(0)
推荐(0)
2020年5月15日
算法导论 第六章 堆排序 6.5-8
摘要: 题目描述 6.5-8HEAP-DELETE(A,i)操作能过将结点i从堆A中删除。对于一个包括n个元素的堆,请设计一个能够在O(lg n)时间内完成的HEAP-DELETE操作。 思路:把堆中的最后一个元素A[A.heap-size]放到结点i上,然后A.heap-size - 1. 分三种情况:
阅读全文
posted @ 2020-05-15 17:26 千逸山水
阅读(163)
评论(0)
推荐(0)
2020年4月21日
解决laravel项目只能访问index.php根目录,其他目录报404错误
摘要: 一步一步的排查问题,首先,肯定是服务器配置出了问题,和代码无关。 于是去看nginx.conf,在网上查了很多关于这个问题的解决办法,说的大致都一样,就是在 location / { root D:/phpstudy_pro/WWW/Unifiedtransform/public/; index i
阅读全文
posted @ 2020-04-21 15:08 千逸山水
阅读(1375)
评论(0)
推荐(0)
2020年4月17日
php函数名后冒号(:)+数据类型(返回值类型限制/php新特性)
摘要: 在PHP7,一个新的功能,返回类型声明已被引入。返回类型声明指定的一个函数返回值的类型。 int float bool string interfaces array callable 对象实例 such as: hasRole方法的返回值必须是布尔数据类型。
阅读全文
posted @ 2020-04-17 09:16 千逸山水
阅读(1842)
评论(0)
推荐(0)
2020年4月14日
php-laravel框架下,通过指定字段对结果集进行排序
摘要: 1 $products = Blog::with('user')->where('user_status', 'normal') 2 ->whereIn('blogId', $blogId) 3 ->orderByRaw("FIELD(blogId, " . implode(", ", $blogI
阅读全文
posted @ 2020-04-14 14:50 千逸山水
阅读(1793)
评论(0)
推荐(0)
上一页
1
2
公告