上一页 1 2 3 4 5 6 7 8 9 ··· 65 下一页
摘要: requests 安装: pip install requests 参考文档 https://requests.readthedocs.io/en/master/ GET: # get(url, 字典格式的参数) r = requests.get('https://api.github.com/us 阅读全文
posted @ 2021-01-23 23:08 GetcharZp 阅读(53) 评论(0) 推荐(0) 编辑
摘要: axios 通过async和await实现同步 function getPage(menuId, url) { // 这里要有 return return this.$http.get(url, { params: { menuId: menuId } }).then((response) => { 阅读全文
posted @ 2021-01-23 23:02 GetcharZp 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 怎么在Vue中使用axios组件: 通过npm安装axios npm i axios 在 src/main.js中导入该组件 import axios from 'axios' axios常用请求 GET : // 为给定 ID 的 user 创建请求 axios.get('/user?ID=123 阅读全文
posted @ 2021-01-23 22:53 GetcharZp 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 怎么在Vue项目中使用Element组件: 通过npm下载Element组件 npm i element-ui -S 在 src/main.js 中导入该组件 // 引入相关JS文件 import Element from 'element-ui' // 引入相关CSS文件 import 'elem 阅读全文
posted @ 2021-01-23 22:49 GetcharZp 阅读(174) 评论(0) 推荐(0) 编辑
摘要: vue-cli 基本使用 1、全局安装vue-cli 安装 npm install -g @vue/cli 2、通过vue创建一个项目 vue create hello-world 3、项目运行 cd hello-world npm run serve 4、把项目编译成静态网页 注意:这里可能会出现 阅读全文
posted @ 2021-01-23 22:47 GetcharZp 阅读(81) 评论(0) 推荐(0) 编辑
摘要: FastJson jsonString 转 Object Result 对象: public class Result { private Integer code; private String msg; private ArrayList<Data> data; public Integer g 阅读全文
posted @ 2021-01-21 23:48 GetcharZp 阅读(208) 评论(0) 推荐(0) 编辑
摘要: apt 常用命令 PS:Ubuntu、Debian 默认使用 apt 对程序包进行管理;RedHat、Centos 默认使用 yum对包进行管理 搜索程序包: apt-cache search 包名 下载程序包: apt-get install 包名 卸载程序包: apt-get remove 包名 阅读全文
posted @ 2021-01-16 12:37 GetcharZp 阅读(97) 评论(0) 推荐(0) 编辑
摘要: Windows: 在 C:\Users\用户名 下面新建一个pip目录,在该目录下面新增 pip.ini 文件,文件的内容如下 Linux: vim ~/.pip/pip.conf [global] index-url = http://mirrors.aliyun.com/pypi/simple/ 阅读全文
posted @ 2021-01-12 21:44 GetcharZp 阅读(420) 评论(0) 推荐(0) 编辑
摘要: 1、新建 conf.yaml 文件 database: dbtype: mysql dbname: database table: table username: username password: password application: port: 8000 2、新建 conf.go 文件 阅读全文
posted @ 2021-01-06 16:12 GetcharZp 阅读(1342) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env php 作用通过 #!/usr/bin/env php 用来指定文件以php脚本的形式运行新建文件的时候就可以省去文件后缀.php。 阅读全文
posted @ 2020-12-29 23:39 GetcharZp 阅读(256) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 65 下一页