文件的上传和下载 一、文件的上传介绍(*****重点) 步骤: 1、要有一个 form 标签,method=post 请求 2、form 标签的 encType 属性值必须为 multipart/form-data 值 3、在 form 标签中使用 input type=file 添加上传的文件 4 ...
分类:
Web程序 时间:
2020-11-19 12:05:08
阅读次数:
15
1、HttpRequest对象的属性和方法 http请求:HttpRequest对象 def seetl(request): request.path # 请求页面全路径(不包括域名)request.get_full_path()请求路径中会加入相关参数(针对于GET请求) request.meth ...
分类:
其他好文 时间:
2020-11-18 12:41:46
阅读次数:
7
php+php 所需扩展库 交叉编译 安装依赖: libxml2: 1. wget ftp://xmlsoft.org/libxml2/libxml2-2.7.2.tar.gz 2. tar xvf libxml2-2.7.2.tar.gz 3. cd libxml2-2.7.2 4. ./conf ...
分类:
Web程序 时间:
2020-11-17 12:31:59
阅读次数:
21
yum install wget 备份原来的源 sudo mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bk 下载阿里源 cd /etc/yum.repos.d sudo wget -nc http:// ...
分类:
其他好文 时间:
2020-11-17 11:53:55
阅读次数:
4
###前言 ####Node.js的前世 1995年,网景工程师Brendan Eich 花了10天时间设计了JavaScript语言. 2005年开始,ajax逐渐被前端开发人员所重视,因为不用刷新页面就可以更新页面的数据和渲染效果。 2008年,google的Chrome发布,随后就以极快的速度 ...
分类:
Web程序 时间:
2020-11-16 13:36:39
阅读次数:
16
通过静态方法获取,你也可以封装一个静态方法出来 @GetMapping(value = "") public String center() { ServletRequestAttributes servletRequestAttributes = (ServletRequestAttributes ...
分类:
编程语言 时间:
2020-11-16 13:23:52
阅读次数:
9
微信小程序--基于ColorUI构建皮皮虾短视频去水印组件(仅供学习使用) 没错,我是皮友,我想学习舞蹈(/doge)和瑜伽 ,要无水印的那种有助于我加深学习。 1.组件效果展示 2.组件引入准备 https://spider.apisev.cn加入合法request域名列表 如果需要下载视频功能的 ...
分类:
微信 时间:
2020-11-13 12:48:04
阅读次数:
23
1.建表部分网上资料很多,此处不赘述 2.查询数据,传给前端 def userList(request): if request.is.ajax(): user=User.objects.values().all() user_list=list(user) response=JsonRespons ...
分类:
数据库 时间:
2020-11-13 12:17:09
阅读次数:
23
因为公司流程的需要,需要给每个API的Request 和Response 模型及属性加上注解,发现Api项目依赖的Model 类库中的/// Summy的注解并没有作用。 通过翻资料和实践。发现借助 Swashbuckle.AspNetCore.Annotations 包可以实现。 步骤: 在模型字 ...
分类:
Web程序 时间:
2020-11-12 14:12:28
阅读次数:
12
1.微博绑定用户接口 1.1 oauth/urls.py 中添加路由 urlpatterns = [ path('weibo/binduser/', views.OauthWeiboBindUser.as_view()), # /oauth/weibo/callback/ ] 1.2 oauth/v ...
分类:
其他好文 时间:
2020-11-12 13:56:22
阅读次数:
5