摘要: 第一种: char[] data = { 'a', 'b', 'c' };// 字符数组 String str = new String(data); System.out.println(str); 第二种 String str1 = String.valueOf(data); System.ou 阅读全文
posted @ 2020-06-01 19:13 英勇博客 阅读(915) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) throws SQLException { String str1 = "阿迪达斯adidas neo VS JOG男女休闲鞋DB0466EH1696EH1698EH1699"; String[] s = str1.spl 阅读全文
posted @ 2020-06-01 14:41 英勇博客 阅读(929) 评论(0) 推荐(0) 编辑
摘要: 1.通过Util包中的Date获取 Date date = new Date(); SimpleDateFormat dateFormat= new SimpleDateFormat("yyyy-MM-dd :hh:mm:ss"); System.out.println(dateFormat.for 阅读全文
posted @ 2020-05-30 14:56 英勇博客 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 到项目目录执行命令安装包 执行更新 找到 config/app.php 配置文件中,key为 providers 的数组,在数组中添加服务提供者。 执行命令,生成配置文件到config/目录下 配置说明 配置文件 config/latrell-alipay.php 为公共配置信息文件 config/ 阅读全文
posted @ 2019-09-14 19:56 英勇博客 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 清理视图缓存 php atisan view:clear 清除运行缓存 php artisan cache:clear 清除配置 php artisan config:clear 清除路由缓存 php artisan route:clear 创建建立session... 阅读全文
posted @ 2019-09-14 19:47 英勇博客 阅读(1952) 评论(0) 推荐(0) 编辑
摘要: 原网址:https://bbs.csdn.net/topics/350197859 阅读全文
posted @ 2019-08-12 15:33 英勇博客 阅读(167) 评论(0) 推荐(0) 编辑
摘要: function my_scandir($dir) { $files = array(); if ( $handle = opendir($dir) ) { //opendir() 函数打开一个目录句柄,可由 closedir(),readdir() 和 rewinddir() 使用。 while ( ($file = readdir($ha... 阅读全文
posted @ 2019-07-19 10:14 英勇博客 阅读(1016) 评论(0) 推荐(0) 编辑
摘要: 2的n次方 pow(2,n); 4的开平方,可以写成 pow(4, 1/2); 27的开三次方,可以写成 pow(27, 1/3); 阅读全文
posted @ 2019-05-14 09:15 英勇博客 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 创建仓库后先初始化,执行完下列命令后,在上传命令 //初始化 git init //查看状态 git status //连接到远程仓库 git remote add origin 仓库地址 git pull origin master git push origin master //添加文件到暂存区 git add 文件名 //提交文件到当前分支 git commit -m "引号中间写注释... 阅读全文
posted @ 2019-05-10 20:46 英勇博客 阅读(106) 评论(0) 推荐(0) 编辑
摘要: public function shows(Request $request){ $p=$request->get("page"); $page=empty($p)?1:$p; $count=DB::table("shop")->count(); $length = 4; $num_page = ceil($coun... 阅读全文
posted @ 2019-04-25 10:12 英勇博客 阅读(415) 评论(0) 推荐(0) 编辑