一、用户登录: 采用之前的邮件登录系统的界面和验证 1 //设置数据格式 2 response.setContentType("text/html;charset=utf-8"); 3 request.setCharacterEncoding("utf-8"); 4 PrintWriter pw = ...
分类:
Web程序 时间:
2020-06-25 16:05:21
阅读次数:
89
表结构 CREATE TABLE `test2` ( `id` varchar(32) DEFAULT NULL, `prarentid` varchar(32) DEFAULT NULL, `name` varchar(255) DEFAULT NULL ) ENGINE=InnoDB DEFAU ...
分类:
编程语言 时间:
2020-06-25 12:00:09
阅读次数:
207
使用 axios 后台无法接收到数据的解决方案 如果想看排错思路的,可以看完踩坑经历,想直接要结果的,可以直接看解决方案。 踩坑经历 最近我在使用 SSM + Vue 做自己的小项目。Dao层 和 Service层 之类的代码已经写好了,就差 Controller层 和 Vue 的视图层还没有完成。 ...
分类:
移动开发 时间:
2020-06-25 10:13:27
阅读次数:
144
#coding=utf-8 import sys import os import configparser base_path = os.getcwd() sys.path.append(base_path) import requests import json from Util.handle ...
分类:
其他好文 时间:
2020-06-25 10:00:14
阅读次数:
59
asyncio 快速使用 import asyncio async def request(url): print("request正在执行 %s"%url) print("request执行完成 %s"%url) # 创建实践循环 event_loop = asyncio.get_event_lo ...
分类:
其他好文 时间:
2020-06-24 23:22:54
阅读次数:
80
今日内容概要 CBV源码剖析 模版层 模版语法传值 模版语法之过滤器 模版语法之标签 自定义过滤器、标签及inclusion_tag 模版的继承 模版的导入 FBV与CBV """ 视图函数即可以是函数也可以是类 """ # FBV def index(request): return HttpRe ...
分类:
其他好文 时间:
2020-06-24 21:56:45
阅读次数:
51
1、新建新闻表 2、新建LoginServlet验证登录用户是否则正确 1 //连接数据库 2 response.setContentType("text/html; charset=utf-8"); 3 request.setCharacterEncoding("utf-8"); 4 PrintW ...
分类:
Web程序 时间:
2020-06-24 21:54:58
阅读次数:
84
axios中get/post请求方式 1. 前言 最近突然发现post请求可以使用params方式传值,然后想总结一下其中的用法。 2.1 分类 get请求中没有data传值方式 2.2 get请求 params 基础类型接收,名字对应即可 // method const params = { id ...
分类:
移动开发 时间:
2020-06-24 21:46:53
阅读次数:
556
https://www.cnblogs.com/zyq-blog/p/5606760.html 一. 简介 urllib.request.urlopen()函数用于实现对目标url的访问。 函数原型如下:urllib.request.urlopen(url, data=None, [timeout, ...
分类:
Web程序 时间:
2020-06-24 21:31:38
阅读次数:
235
1 <?php 2 namespace App\Modules\Live\Http\Controllers; 3 4 use Illuminate\Http\Request; 5 use Maatwebsite\Excel\Facades\Excel; 6 class ImportControlle ...
分类:
其他好文 时间:
2020-06-24 18:07:10
阅读次数:
64