一、PubSubJS的使用 工具库: PubSubJS 下载: npm install pubsub-js --save 使用: 1) import PubSub from 'pubsub-js' //引入 2) PubSub.subscribe('delete', function(data){ ...
分类:
其他好文 时间:
2021-04-24 13:38:03
阅读次数:
0
JWT认证 官网:https://github.com/jpadilla/django-rest-framework-jwt 在用户注册或登录后,我们想记录用户的登录状态,或者为用户创建身份认证的凭证。我们不再使用Session认证机制,而使用Json Web Token(本质就是token)认证机 ...
分类:
其他好文 时间:
2021-04-24 13:24:49
阅读次数:
0
在虚拟环境使用以下命令将当前虚拟环境中的依赖包以版本号生成至文件中: pip freeze >requirements.txt pip install -r requirements.txt ## SQLAlchemy from flask import Flask from flask_sqlal ...
分类:
数据库 时间:
2021-04-24 13:23:20
阅读次数:
0
准备工作: npm install --save html2canvas 在需要的组件中引入 import html2canvas from "html2canvas" 需要生成的图片所在的div 要添加<div ref="imageWrapper">.... </div> 方法一:生成blob文件 ...
分类:
Web程序 时间:
2021-04-24 11:59:51
阅读次数:
0
转 select *, count(distinct name) from table group by name结果:id name count(distinct name) 1 a 1 2 b 1 3 c 1 最后一项是多余的,不用管就行了,目的达到。原来mysql这么笨,轻轻一下就把他骗过去了 ...
分类:
其他好文 时间:
2021-04-24 11:59:34
阅读次数:
0
案例 ''' 对话框:QDialog QMessageBox QColorDialog QFileDialog QFontDialog QInputDialog QMainWindow QWidget QDialog ''' import sys from PyQt5.QtCore import * ...
分类:
其他好文 时间:
2021-04-24 11:57:51
阅读次数:
0
案例 ''' 消息对话框:QMessageBox 1. 关于对话框 2. 错误对话框 3. 警告对话框 4. 提问对话框 5. 消息对话框 有2点差异 1. 显示的对话框图标可能不同 2. 显示的按钮是不一样的 ''' import sys from PyQt5.QtCore import * fr ...
分类:
其他好文 时间:
2021-04-24 11:55:31
阅读次数:
0
首先自定义一个专门处理异步的 hooks import {reactive, toRefs} from "vue"; const useAsyncFn = (fn)=>{ let data = reactive({value:undefined ,loading:false,err:undefine ...
分类:
Web程序 时间:
2021-04-24 11:55:00
阅读次数:
0
SELECT areaName FROM area ORDER BY CONVERT ( areaName USING gbk ) COLLATE gbk_chinese_ci ASC 说明: areaName为列名 area为表名 ...
分类:
数据库 时间:
2021-04-24 11:51:48
阅读次数:
0
1、安装依赖 npm install vue2-ace-editor 2、导入依赖,注册为子组件 import Editor from 'vue2-ace-editor' //在页面组件中通过components ,注册导入的组件 components:{ Editor } 3、组件使用 <edit ...
分类:
Web程序 时间:
2021-04-24 11:50:04
阅读次数:
0