摘要:
1、env_dict.keys(): 获取字段所有的键,比对字符是否有里面的键 env_key="9" env_dict = {"1": "dev", "2": "test", "3": "staging"} if env_key not in env_dict.keys(): raise Exce 阅读全文
摘要:
Python类 基础笔记类 python工作遇到的小技能: https://www.cnblogs.com/kaibindirver/p/16379652.html python3工作遇到的小技能: https://www.cnblogs.com/kaibindirver/p/12577361.ht 阅读全文
摘要:
http://pnr.sz.gov.cn/ywzy/fdtz/index.html 阅读全文
摘要:
pmset -g sched,会发现如下所示:列出所有的计划事件 wakepoweron at 9:50AM every day Scheduled power events: [0] wake at 04/21/24 01:38:54 by 'com.apple.alarm.user-visibl 阅读全文
摘要:
创建临时文件 磁盘空间满了 tmp目录分配的磁盘空间 磁盘是有分区的 比如 电脑的 c d e 盘 使用命令 df -h 可以查看对应目录下分配的磁盘大小 解决: 调整对应目录下磁盘的分配大小 阅读全文
摘要:
下载地址: https://t00y.com/file/13114864-443796615 执行下面的命令重新安装即可 sudo pkgutil --forget com.cisco.pkg.anyconnect.vpn sudo pkgutil --forget com.cisco.pkg.an 阅读全文
摘要:
from rest_framework import serializers from datetime import datetime class CustomDateTimeField(serializers.DateTimeField): def to_representation(self, 阅读全文
摘要:
select CASE WHEN c1.id IS NOT NULL THEN c1.id ELSE c4.id END AS utm_source form table 阅读全文
摘要:
from rest_framework import serializers class MyModelSerializer(serializers.ModelSerializer): class Meta: model = MyModel fields = ['field1', 'field2'] 阅读全文
摘要:
import * as React from "react" // 接收参数 interface IProps{ work?:string } interface State { //名字可以随便起 date: string; // 定义 state 的结构 } export default cla 阅读全文
摘要:
数组传递 Hello.tsx import * as React from "react" #组件接收的变量 interface IProps{ title:string, age:number, work?:string #通过增加?确定他为可选项参数(调用时可以不传) } export defa 阅读全文
摘要:
教程地址: https://www.bilibili.com/video/BV1FA411i7PD 项目创建和启动 cnpm install -g create-react-app npx create-react-app myapp --template typescript vscode插件 T 阅读全文
摘要:
vue.config.js module.exports = { // 解决首页访问出现很多预加载文件的问题 chainWebpack: config => { // 移除 prefetch 插件 config.plugins.delete('prefetch') // 或者 // 修改它的选项: 阅读全文
摘要:
vue.config.js module.exports = { configureWebpack:{ externals: { 'element-ui': 'ELEMENT', vue: 'Vue' }} //externals 配置来告诉 Webpack 不要打包它。 index.html <! 阅读全文
摘要:
https://blog.csdn.net/piaomiao_/article/details/126347476 System.setProperty('org.apache.commons.jelly.tags.fmt.timeZone','Asia/Shanghai') 阅读全文
摘要:
https://vikyd.github.io/download-chromium-history-version/#/ 阅读全文
摘要:
npm install --save vue-clipboard2 import VueClipBoard from 'vue-clipboard2' Vue.use(VueClipBoard) value即是要复制的内容 <button @click="seccendCopy">第二种方式复制</ 阅读全文
摘要:
https://www.bilibili.com/video/BV1Z44y1K7Fj?p=7&vd_source=caabcbd2a759a67e2a3de8acbaaf08ea 阅读全文
摘要:
1,路由组件的基本实现 使用React构建的单页面应用,要想实现页面间的跳转,首先想到的就是使用路由。在React中,常用的有两个包可以实现这个需求,那就是react-router和react-router-dom。本文主要针对react-router-dom进行说明。 安装: 首先进入项目目录,使 阅读全文
摘要:
有2个老师咋那么实现每次轮询 teacherList=【1,2】 使用模运算即可 redis记录 0 0%2=0。得到下标 teacherList[0] redis记录 1 1%2=1. 得到下标 teacherList[1] redis记录 2 2%2=0. 得到下标 teacherList[0] 阅读全文
摘要:
https://blog.csdn.net/weixin_44856917/article/details/128818158 <template> <div> <!-- // 小图标 --> <a-button @click="enlarge">双击放大</a-button> <div id="m 阅读全文
摘要:
官网: https://mermaid.js.org/syntax/flowchart.html 例子: https://blog.csdn.net/weixin_55508765/article/details/125735923 https://blog.csdn.net/weixin_4595 阅读全文
摘要:
force index(ix_utmsource_signup_activated)强制走索引 FROM emb_xxxx a <if test="ixUtxxxSignup != null and ixUxxxSignup"> force index(ix_xxxx)</if> 阅读全文
摘要:
一、介绍 https://zhuanlan.zhihu.com/p/458011982 二、视频 https://www.bilibili.com/video/BV1vg411h7ty/?spm_id_from=333.337.search-card.all.click&vd_source=caab 阅读全文
摘要:
一、处理多个条件语句 all()方法 对于all()的一般例子如下: size = "lg" color = "blue" price = 50 # bad practice if size == "lg" and color == "blue" and price < 100: print("Ye 阅读全文
摘要:
<template> <!-- class="server_a" --> <div class="a"> 服务列表 <div> <a-descriptions title="123" bordered> <a-descriptions-item label="服务列表"> Cloud Databas 阅读全文
摘要:
https://www.cnblogs.com/evident/p/16700615.html 下面这种只隐藏了表头 tabkeColumns: [ { title: '姓名', dataIndex: 'name', key: 'name', colSpan:(route.path 'SIM'?1: 阅读全文
摘要:
def round_3_1(): a1 = 2; a2 = 3; a3 = 1; sum = a1 + a2 + a3; for i in range(100): s = i % sum; if s < a1: print("1"); elif s < a1 + a2: print("2222"); 阅读全文
摘要:
show-search后可开启搜索模式。 把搜索的值内容改为optionFilterProp=label 想同时搜索label和value两个字段把label设置成label="v.roleName+v.roleId" <a-select ref="select" v-model:value="va 阅读全文
摘要:
<template> <div> <div style="background: white; height: 100%"> <div class="up_css"> <p> JMETER运行状态: <a-tag :color="this.jmeterStatus != true ? 'green' 阅读全文
摘要:
table 组件 让选中的一项高亮显示 <template> <a-table ref="clientLeve_table" bordered size="middle" rowKey="id" :columns="clientLeve_columns" :dataSource="clientLev 阅读全文
摘要:
阅读全文
摘要:
https://www.runoob.com/react/react-state.html 1、状态和变量的使用 class Clock extends React.Component { // 变量存放--固定写法 constructor() { super(); this.state = {sh 阅读全文
摘要:
<a-input v-model="edit.rampTime" type="number" oninput="value=value.replace('.', '',).replace('-', '',)" style="width: 220px" ></a-input> 阅读全文
摘要:
{% autoescape off %} {{ variable }} {% endautoescape %} 当 ariable 传入的是html 会自动渲染出来 https://www.itguest.com/post/hidij2b8.html 阅读全文
摘要:
通过vue key 实现,原理官方文档。所以当key 值变更时,会自动的重新渲染。 <template> <third-comp :key="menuKey"/> </template> <script> export default{ data(){ return { menuKey:1 } }, 阅读全文
摘要:
https://blog.csdn.net/qq_40323256/article/details/111305117 https://www.likecs.com/show-307541080.html (这个可以) https://github.com/SheetJS/sheetjs 1. np 阅读全文
摘要:
https://blog.csdn.net/Tomonkey/article/details/125382817 安装addcomments pip install addcomments 给model字段添加verbose_name属性 age = models.SmallIntegerField 阅读全文
摘要:
https://blog.csdn.net/jianleking/article/details/118442697 json转xlsx文件导出 https://www.jianshu.com/p/7950d40ace40 json转流文件。和 流文件解析 https://www.jianshu.c 阅读全文
摘要:
https://1x.antdv.com/components/cascader-cn/ <a-cascader ref="cascader" #钩子 :allowClear="false" style="height:30px" :options="depList" :load-data="loa 阅读全文
摘要:
书接上回 https://www.cnblogs.com/kaibindirver/p/17381857.html import React from 'react' import '../css/01.css' export default class App extends React.Comp 阅读全文
摘要:
操作数据要用 setStatus函数 操作数据要深拷贝再操作 常规展示 import React from 'react' export default class App extends React.Component { state={ list:[{"id":1,"text":"张三"},{" 阅读全文