上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页
摘要: from openpyxl import load_workbook import os from re import findall import json # 读取所有的sheet目录 def read_xlsx(path="./"): lis = os.listdir(path) base_x 阅读全文
posted @ 2022-09-04 14:33 深海里的星星i 阅读(478) 评论(0) 推荐(0)
摘要: 组件部分, 内容为空, 自己diy就行了, html 你难道不会? slot 插槽你难道不会? <template> <transition name="dialog-fade"> <div v-if="modelValue" class="m-overly" @click="hideDialog" 阅读全文
posted @ 2022-08-04 10:18 深海里的星星i 阅读(491) 评论(0) 推荐(0)
摘要: 第一段代码是组件的封装 vue 第二段代码, 是组件调用 js, 对第一段代码的挂载调用 第三段代码, 是页面 vue , 调用 第二段代码的函数, 实现第一段代码的动态挂载, 移除 组件内容 <template> <transition name="show"> <div class="m-not 阅读全文
posted @ 2022-08-01 15:38 深海里的星星i 阅读(1438) 评论(0) 推荐(0)
摘要: 1. 卸载之前跟node相关的东西, node-sass sass sass-loader sass-node .... 2. 重新安装node npm install sass-loader@8.0.2 sass@1.26.5 -D 阅读全文
posted @ 2022-07-27 14:21 深海里的星星i 阅读(690) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content 阅读全文
posted @ 2022-07-22 14:10 深海里的星星i 阅读(121) 评论(0) 推荐(0)
摘要: from flask import Blueprint, request from utils.resp import resp from validators.user_validator import RegisterForm from werkzeug.datastructures impor 阅读全文
posted @ 2022-07-04 21:25 深海里的星星i 阅读(419) 评论(0) 推荐(0)
摘要: 父组件 <template> <el-button type="primary" @click="faEvent">父组件</el-button> <hr /> <!-- 父2子 步骤 1. 定义ref --> <!-- 子2父 步骤 3. 父组件创建自定义事件 --> <SonCpt ref="s 阅读全文
posted @ 2022-07-03 13:44 深海里的星星i 阅读(1877) 评论(0) 推荐(0)
摘要: 父组件触发子组件事件 1. 父组件内使用子组件, 并且给出 ref 值 <EditCpts ref="editCptsRef" @refresh="refresh" /> 2. setup 函数中获取引用 const editCptsRef = ref() 3. 需要把引用导出去, 不然会是 und 阅读全文
posted @ 2022-07-01 15:22 深海里的星星i 阅读(1603) 评论(0) 推荐(0)
摘要: 1. 安装 pip install PyJWT 2. 使用 import jwt import time # 过期时间 单位秒, 这里是2s后失效 expire_time = int(time.time()) + 2 # exp存放的是过期时间的时间戳 payload = {"name": "fmg 阅读全文
posted @ 2022-06-30 15:42 深海里的星星i 阅读(569) 评论(0) 推荐(0)
摘要: 错误解决方案(也能解决, 但是不推荐) 降低 flask 的版本到 一点几 推荐解决方案, 点击 flask_script 进入 __init__.py文件 修改如下 # from flask._compat import text_type from flask_script._compat im 阅读全文
posted @ 2022-06-19 12:01 深海里的星星i 阅读(572) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页