会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
GetcharZp
菜到安详
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
7
8
9
10
11
12
13
14
15
···
65
下一页
2020年4月9日
MongoDB常用命令
摘要: MongoDB常用命令 一、进入数据库: mogon 二、数据库相关操作 db 查看当前所使用的数据库 show dbs 查看所有的数据库 use 数据库名 选择数据库并使用 db.dropDatabase() 删除当前所使用的数据库 三、集合相关操作 db.createCollection(集合名
阅读全文
posted @ 2020-04-09 00:22 GetcharZp
阅读(180)
评论(0)
推荐(0)
2020年4月6日
Jupyter Notebook 添加 nbextensions 插件
摘要: Jupyter Notebook 添加 nbextensions 插件 第一步: pip install jupyter_contrib_nbextensions 第二步: jupyter contrib nbextension install --user 第三步: 进入 Extension 选择
阅读全文
posted @ 2020-04-06 00:11 GetcharZp
阅读(349)
评论(0)
推荐(0)
2020年3月10日
YII 数据插入 save() 方法
摘要: 案例: $country = new Country; $country->code = "AB"; $country->name = "name"; $country->population = 123; var_dump($country->save()); var_dump($country-
阅读全文
posted @ 2020-03-10 20:21 GetcharZp
阅读(587)
评论(0)
推荐(0)
springboot md5 加密
摘要: springboot 使用 DigestUtils 工具栏对进行数据加密 String md5 = DigestUtils.md5DigestAsHex("123456".getBytes()); System.out.println(md5);
阅读全文
posted @ 2020-03-10 00:36 GetcharZp
阅读(472)
评论(0)
推荐(0)
2020年3月6日
yii 在model中实现连表查询
摘要: 通过 innseJoin 可以将当前 model 对应的数据表和 参数带的表进行关联,(注意表名要用全称) 第一步: innerJoin('待关联的表名', '两个表中的对应相关字段') 第二步: 就可以通过 andFilterWhere() 指定相关的条件 $query->innerJoin('d
阅读全文
posted @ 2020-03-06 19:37 GetcharZp
阅读(348)
评论(0)
推荐(0)
yii 获取登录用户的信息
摘要: 通过 Yii::$app->user->identity->表的字段名 可以获取登录用户的登录信息
阅读全文
posted @ 2020-03-06 15:42 GetcharZp
阅读(322)
评论(0)
推荐(0)
yii 在GridView中怎样添加html代码
摘要: 通过加上 'format' => 'html' 可以是 GridView 中的列具备html标签; 例子: [ 'attribute' => 'remark', 'value' => function ($model) { return Html::a('超链接', 'https://getchar
阅读全文
posted @ 2020-03-06 13:43 GetcharZp
阅读(217)
评论(0)
推荐(0)
yii 返回json数据
摘要: YII 报错: Response content must not be an array yii 在 Controller 中返回数据,要加返回数据前加下面代码: Yii::$app->response->format = Response::FORMAT_JSON; 返回的数据为 return
阅读全文
posted @ 2020-03-06 11:52 GetcharZp
阅读(363)
评论(0)
推荐(0)
2020年3月5日
yii GridView 装饰器自定义列的名称
摘要: 第一步:通过 gii 生成 CRUD 的代码 第二步:修改该视图所对应的 model 中的 attributeLabels 函数 public function attributeLabels() { return [ 'id' => 'ID', 'order_id' => '订单 ID', //
阅读全文
posted @ 2020-03-05 11:09 GetcharZp
阅读(155)
评论(0)
推荐(0)
2020年3月3日
将 maven 镜像更改为阿里云的镜像
摘要: 修改 maven/conf/settings.xml 文件 中的 mirror <mirrors> <mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/grou
阅读全文
posted @ 2020-03-03 18:41 GetcharZp
阅读(1176)
评论(0)
推荐(0)
上一页
1
···
7
8
9
10
11
12
13
14
15
···
65
下一页
公告