摘要: 父组件传子组件 """ 在父组件中定义一个动态属性 在子组件中props接收父组件的变量(两种接收方法: json接收类型和 数组接收类型) 父组件传递到子组件的数据不能修改 子组件传递给父组件: 子组件中会使用一个this.emit("相当于一个变量",参数....) 父组件接收的话: 父组件会定 阅读全文
posted @ 2022-03-03 17:13 甜甜太阳雨 阅读(127) 评论(0) 推荐(0)
摘要: class File(object): def init(self, file_name: str, mode: str): self.file_name = file_name self.mode = mode def __enter__(self): self.f = open(self.fil 阅读全文
posted @ 2022-03-03 16:04 甜甜太阳雨 阅读(29) 评论(0) 推荐(0)
摘要: from ratelimit import limits from flask import Flask app = Flask(name) @app.route("/index", methods=["GET"]) @limits(calls=1, period=2) def index(): p 阅读全文
posted @ 2022-02-24 16:32 甜甜太阳雨 阅读(40) 评论(0) 推荐(0)
摘要: var timestrpi = 3423432222 var newDate = new Date() newDate.setTime(timestrpi * 1000) newDate.toLocaleString() https://blog.csdn.net/js_admin/article/ 阅读全文
posted @ 2022-02-19 18:12 甜甜太阳雨 阅读(80) 评论(0) 推荐(0)
摘要: 使用 --config启动mongo 必须使用 --config停止mongo 使用 systemctl 启动 mongo 必须使用systemctl停止mongo 阅读全文
posted @ 2021-11-26 20:20 甜甜太阳雨 阅读(24) 评论(0) 推荐(0)
摘要: 网址:https://blog.csdn.net/dejing6575/article/details/101474297 static_folder表示静态文件所在路径,默认为root_dir下的static文件夹 static_url_path的行为比较复杂 如果static_folder未被指 阅读全文
posted @ 2021-10-29 09:58 甜甜太阳雨 阅读(301) 评论(0) 推荐(0)
摘要: celery异步任务是不允许参数为对象的,会报无法序列化的错误 阅读全文
posted @ 2021-10-25 16:08 甜甜太阳雨 阅读(94) 评论(0) 推荐(0)
摘要: import paramiko @download.route("/server/info", methods=["POST"]) @token_required def get_server_info(): res = ResponseMsg() server_folder_path = requ 阅读全文
posted @ 2021-10-22 14:27 甜甜太阳雨 阅读(204) 评论(0) 推荐(0)
摘要: import paramiko client = paramiko.SSHClient() client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) client.connect(hostname="8.140.144.184",por 阅读全文
posted @ 2021-10-19 15:09 甜甜太阳雨 阅读(36) 评论(0) 推荐(0)
摘要: windows系统启动celery: celery -A celeryserver:celery worker -l info -P eventlet Linux 系统启动celery : celery -A celeryserver:celery worker -l info 阅读全文
posted @ 2021-10-18 13:31 甜甜太阳雨 阅读(127) 评论(1) 推荐(0)