上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页
摘要: 阅读全文
posted @ 2019-04-12 20:18 路口有雾 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-04-12 20:15 路口有雾 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-04-12 20:12 路口有雾 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-04-12 20:06 路口有雾 阅读(88) 评论(0) 推荐(0) 编辑
摘要: import smtplibfrom email.mime.text import MIMETextreceiver = input('输入接受者邮箱\n')subject = input('输入标题')content = input('输入内容')host = 'smtp.163.com'user 阅读全文
posted @ 2019-03-05 21:25 路口有雾 阅读(158) 评论(0) 推荐(0) 编辑
摘要: drf的序列化组件: 1. 用途: 把python中的对象,转成json格式字符串 2. 使用步骤1: 写一个类继承Serializer或者ModelSerializer 举例(类中选取字段进行序列化): class BookSerializer(serializers.Serializer): i 阅读全文
posted @ 2019-03-05 20:07 路口有雾 阅读(488) 评论(0) 推荐(0) 编辑
摘要: restful的十条规范 restful一共有十条规范,但其并不是规定。可以不去遵守,是一种软件风格 1.API与客户端交互,通常使用https协议 2.域名:https://api.baidu.com(需要解决跨域问题) 或 https://www.baidu.com/api/ 3.版本:在域名后 阅读全文
posted @ 2019-03-05 18:03 路口有雾 阅读(195) 评论(0) 推荐(0) 编辑
摘要: vue-router { path: '/', name: 'home', // 路由的重定向 redirect: '/home' } { // 一级路由, 在根组件中被渲染, 替换根组件的<router-view/>标签 path: '/one-view', name: 'one', compon 阅读全文
posted @ 2019-03-01 21:23 路口有雾 阅读(158) 评论(0) 推荐(0) 编辑
摘要: // 安装cookie的命令// npm install vue-cookie --save// 为项目配置全局vue-cookieimport VueCookie from 'vue-cookie'// 将插件设置给Vue原型,作为全局的属性,在任何地方都可以通过this.$cookie进行访问V 阅读全文
posted @ 2019-03-01 21:19 路口有雾 阅读(1217) 评论(0) 推荐(0) 编辑
摘要: 在main中导入axios // 安装 axios(ajax)的命令 // npm install axios--save // 为项目配置全局axios import Axios from 'axios' Vue.prototype.$ajax = Axios axios的使用 let _this 阅读全文
posted @ 2019-03-01 21:16 路口有雾 阅读(134) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页