05 2021 档案

摘要:myArray:[ {people:'cn',id:1,name:'get001'}, {people:'cn',id:2,name:'pOST002'}, {people:'cn',id:3,name:'DELETE'}, {people:'us',id:4,name:'PATCH'} ], <d 阅读全文
posted @ 2021-05-27 20:16 不带R的墨菲特 阅读(84) 评论(0) 推荐(0) 编辑
摘要:目录 一、数据的安全保障 二、接口特征表现 三、多数据版本共存 四、数据即资源,均使用名词(可复数) 五、资源操作由请求方式决定 六、可以通过url后的参数过滤 七、响应状态码 1 正常响应 2 重定向响应 3 客户端异常 4 服务器异常 八、 错误处理,应返回错误信息,error当做key 九、根 阅读全文
posted @ 2021-05-27 10:48 不带R的墨菲特 阅读(87) 评论(0) 推荐(0) 编辑
摘要:1. filter针对数组起过滤作用筛选出符合条件的一个或多个元素 lvar newarr = [ { num: 1, val: 'ceshi', flag: 'aa' }, { num: 2, val: 'ww' } ] console.log(newarr.filter(item => item 阅读全文
posted @ 2021-05-27 10:24 不带R的墨菲特 阅读(477) 评论(1) 推荐(0) 编辑
摘要:文档: http://www.itxst.com/vue-draggable/n6rzmqj3.html 效果: 源码: <template> <div> <!--使用draggable组件--> <draggable v-model="myArray" chosenClass="chosen" f 阅读全文
posted @ 2021-05-25 21:02 不带R的墨菲特 阅读(664) 评论(0) 推荐(0) 编辑
摘要:序列化器: params = serializers.CharField(max_length=500, allow_blank=True,allow_null=True) class TestCase(models.Model): case_name = models.CharField(max_ 阅读全文
posted @ 2021-05-21 15:07 不带R的墨菲特 阅读(96) 评论(0) 推荐(0) 编辑
摘要:https://www.zhihu.com/question/25003398 parseUrl(url){ var json = {}; if(url undefined || typeof(url) != 'string' || url.indexOf("?") == -1 ||url.inde 阅读全文
posted @ 2021-05-13 14:52 不带R的墨菲特 阅读(102) 评论(0) 推荐(0) 编辑
摘要:npm install monaco-editor@0.23.0https://microsoft.github.io/monaco-editor/ 阅读全文
posted @ 2021-05-12 16:39 不带R的墨菲特 阅读(276) 评论(1) 推荐(0) 编辑
摘要:在数组中的用法: const arr = [2, 3, 5, 4, 5, 2, 2];for(let i of arr){console.log(i) //打印出来的是value 2,3,5,4,2,2}for(let i in arr){console.log(i) //打印出来的是下标 0,1, 阅读全文
posted @ 2021-05-12 16:14 不带R的墨菲特 阅读(125) 评论(0) 推荐(0) 编辑
摘要:REST_FRAMEWORK={ "DEFAULT_VERSIONING_CLASS": "rest_framework.versioning.URLPathVersioning", "DEFAULT_VERSION": 'v1', # 默认为1 "ALLOWED_VERSIONS": ['v1', 阅读全文
posted @ 2021-05-11 10:22 不带R的墨菲特 阅读(41) 评论(0) 推荐(0) 编辑
摘要:效果图: <template> <div> <a-button class="editable-add-btn" @click="handleAdd"> Add </a-button> <div> <a-table :columns="columns" :data-source="data" bor 阅读全文
posted @ 2021-05-08 15:12 不带R的墨菲特 阅读(298) 评论(0) 推荐(0) 编辑
摘要:<style lang="less" scoped> div /deep/ .ant-modal-content{ height: 600px; width: 1000px; } div /deep/ .ant-modal-body{ height: 80%; width: 100%; } </st 阅读全文
posted @ 2021-05-08 10:55 不带R的墨菲特 阅读(1265) 评论(1) 推荐(0) 编辑
摘要:先说下效果: 代码: <template> <div> <a-card title="form-data" :bordered="true" style="width: 40%"> <div> <a-form ref="form" layout="inline" :model="form" > <d 阅读全文
posted @ 2021-05-07 16:12 不带R的墨菲特 阅读(417) 评论(0) 推荐(0) 编辑
摘要:1. import JsonViewer from 'vue-json-viewer' 只可以读: 案例: <div style=" width: 1000px; margin: auto; margin-top: 35px;"> <json-viewer v-model="form.headers 阅读全文
posted @ 2021-05-05 12:27 不带R的墨菲特 阅读(1413) 评论(0) 推荐(0) 编辑
摘要:<template> <div> <div id="components-form-demo-advanced-search"> <a-form class="ant-advanced-search-form" :form="form" :label-col="{ span: 5 }" :wrapp 阅读全文
posted @ 2021-05-01 04:02 不带R的墨菲特 阅读(139) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示