摘要: 在utils目录下utils.py中自定义异常处理函数: from rest_framework.response import Response from rest_framework import status from rest_framework.views import exception 阅读全文
posted @ 2021-07-20 09:28 皮皮龙喔 阅读(85) 评论(0) 推荐(0)
摘要: 在使用Django REST Framework框架过程中,简单的将返回接口进行封装,接口返回规范在最后面 # 可以放在utils或者common公共文件里面 class MyResponse(object): """api返回的信息的封装""" def __init__(self): self.s 阅读全文
posted @ 2021-07-20 09:20 皮皮龙喔 阅读(412) 评论(0) 推荐(0)
摘要: // params 传参 this.$router.push({ name: 'detail', params: { id: iid } }) // query传参 this.$router.push({ name: 'detail2', params: { id: iid,age:18 } }) 阅读全文
posted @ 2021-07-05 16:31 皮皮龙喔 阅读(51) 评论(0) 推荐(0)
摘要: npm install的几种安装方式: https://www.jianshu.com/p/920c1a6e999c 阅读全文
posted @ 2021-06-02 08:53 皮皮龙喔 阅读(357) 评论(0) 推荐(0)
摘要: html { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; height: 100%; } body { margin: 0; font-si 阅读全文
posted @ 2021-05-31 21:40 皮皮龙喔 阅读(2032) 评论(0) 推荐(0)
摘要: HTML开发规范 https://baijiahao.baidu.com/s?id=1602988651097324169&wfr=spider&for=pc JS开发规范 https://www.cnblogs.com/lz20150121/p/8488320.html 阅读全文
posted @ 2021-05-30 16:23 皮皮龙喔 阅读(38) 评论(0) 推荐(0)
摘要: docker概述 docker为什么流行?它的优势是什么?能解决什么问题? 解决部署的难题,尤其是集群环境的部署 版本更新及不同环境下导致运行出问题 docker特点 容器与容器之间相互隔离 最大得发挥服务器的性能 docker在百度云服务器的安装 服务器版本要求 centos 3.10.0-957 阅读全文
posted @ 2021-03-06 22:23 皮皮龙喔 阅读(342) 评论(0) 推荐(0)
摘要: resultEntity统一返回结果: https://blog.csdn.net/qq_45442483/article/details/109722676 阅读全文
posted @ 2021-03-02 11:45 皮皮龙喔 阅读(162) 评论(0) 推荐(0)
摘要: 使用typeAliases配置别名: https://www.jianshu.com/p/fcf3ed0a10d1 阅读全文
posted @ 2021-02-20 17:24 皮皮龙喔 阅读(42) 评论(0) 推荐(0)
摘要: 详情请查看:https://www.macwk.com/article/macos-keyboard-shortcuts 阅读全文
posted @ 2021-02-20 17:02 皮皮龙喔 阅读(53) 评论(0) 推荐(0)