<template> <div> <div id="container"> <button id="selectfiles" type="primary" class="btn">选择文件</button> <template id="postfile" /> <button type="prima ...
分类:
其他好文 时间:
2020-06-14 20:36:59
阅读次数:
47
apiVersion: apps/v1 kind: Deployment metadata: name: nginx spec: replicas: 1 selector: matchLabels: app: nginx template: metadata: labels: app: nginx ...
分类:
其他好文 时间:
2020-06-14 18:52:22
阅读次数:
69
客户端发送 http 请求 服务器发现配置了 http auth,于是检查 request 里面有没有 "Authorization" 的 http header 如果有,则判断 Authorization 里面的内容是否在用户列表里面,Authorization header 的典型数据为 "Au ...
分类:
Web程序 时间:
2020-06-14 10:34:14
阅读次数:
68
1、vue中得监听属性:watch watch就是用来监听数据变化得,当数据模型(data中得数据)发生改变时,watch就会被触发 2、watch提供得是响应数据得变化,并且是自动进行响应得 数据变化得时候执行异步或开销较大得一些操作,会常使用得是watch来实现得 <template> <div ...
分类:
其他好文 时间:
2020-06-14 01:16:29
阅读次数:
80
回顾 可以使用自定义主机组的方式定义hosts,这样可以减少重复任务的代码(不推荐使用,因为自定义主机组的话,剧本中的all将无法使用) ansible和saltstack都要使用yml语法,yml语法中最好使用2468空格 service和systemd启动服务,不支持列表的形式(只能用循环了) ...
分类:
其他好文 时间:
2020-06-14 01:15:57
阅读次数:
54
回顾 剧本中可以使用判断的方式,减少hosts(play)的个数 template jinjia2 剧本中不能使用if判断,使用when判断 shutdown -a 取消关机 shutdown -s 关机 shutdown -f 强行关闭应用程序 shutdown -m \\计算机名 控制远程计算机 ...
分类:
其他好文 时间:
2020-06-14 01:03:23
阅读次数:
53
fastadmin中的art-template是如何实现的 如何在JS模板中,引用其他的js模板 ...
分类:
Web程序 时间:
2020-06-13 22:59:37
阅读次数:
110
父:<template v-slot:center></template>(简写:<template #:center></template>) 子:<slot name="center"></slot> 父:<template v-slot:center=“datas”>{{datas.data} ...
分类:
其他好文 时间:
2020-06-13 19:31:03
阅读次数:
132
前言 httprunner 可以自定义生成测试报告的模板,1.x版本里面有个 extent_report_template.html 模块非常美观。 但是生成报告的时候会报错:jinja2.exceptions.UndefinedError: 'dict object' has no attribu ...
分类:
Web程序 时间:
2020-06-13 19:23:29
阅读次数:
147
本篇中使用的调试函数如下 1 template<typename T> 2 void print_vector(vector<T> a){ 3 if(a.size() == 0) 4 cout << "empty" << endl; 5 else{ 6 for(int i = 0; i < a.si ...
分类:
编程语言 时间:
2020-06-13 15:56:59
阅读次数:
78