先来看一个需求:下图div用v-for做了列表循环,现在想要span也一起循环,应该怎么做? 有3种方法可以实现 ①:直接用v-for对span也循环一次(该方法虽然可以使用,但不要用这种方式,因为以后你会哭) ②:在div和span外面包裹一个div,给这个div加循环(该方法会额外增加一个多余的 ...
分类:
其他好文 时间:
2021-02-17 15:05:53
阅读次数:
0
Perfect简介:Perfect框架是Swift的服务器框架之一。 环境:MacOS 10.15.6 ,Xcode 12.3 1、新建一个文件夹 2、终端 cd到上面创建的文件夹,然后命令 git clone https://github.com/PerfectlySoft/PerfectTemp ...
分类:
编程语言 时间:
2021-02-17 14:49:14
阅读次数:
0
T4模板 <#@ template debug="false" hostspecific="false" language="C#" #> <#@ output extension=".cs" #> <#@ assembly name="System.Data" #> <#@ assembly na ...
分类:
移动开发 时间:
2021-02-17 14:41:02
阅读次数:
0
vue.json { "Print to console": { "prefix": "vue", "body": [ "<template>", " <div>$0</div>", "</template>", "", "<script>", "export default {", " data ...
分类:
其他好文 时间:
2021-02-17 14:21:41
阅读次数:
0
1、背景: 启动MariaDB服务,通过python远程访问数据库失败,查询MariaDB日志(systemctl status mariadb)报错信息为: user: 'unauthenticated' host: '192.168.1.8' (This connection closed no ...
分类:
数据库 时间:
2021-02-17 14:04:16
阅读次数:
0
The connection to the server 192.168.1.11:6443 was refused - did you specify the right host or port? 怀疑是不是kubelet挂了,检查 [root@master1 prometheus]# syst ...
分类:
移动开发 时间:
2021-02-16 12:26:05
阅读次数:
0
// // variadic_template.h// template <typename T>class Enum {public: using Type = T; static const char * toString(T); static T toEnum(const std::strin ...
分类:
其他好文 时间:
2021-02-16 12:24:36
阅读次数:
0
写在前面 今天折腾了一下午加一点点晚上的时间,终于把图片上传,动态进度条给搞出来了 我一直怀疑是 supervisor 这个狗屎东西 不会很好地刷新 热部署,导致我上传失败 明天继续整理 上传的东西,搞懂 今天就主要记录一下,动态进度条 思路 思路就是得用找到上传的状态,算出离结束还有多久/占多少百 ...
分类:
移动开发 时间:
2021-02-16 12:23:03
阅读次数:
0
1.效果如下: 预览页: https://volodyan.github.io/vue3_level_dh_echars_preview/#/2.代码如下:echartsDemo.vue <template> <div class="chart"></div> </template> <script ...
分类:
其他好文 时间:
2021-02-16 12:10:59
阅读次数:
0
1 #include <iostream> 2 3 using namespace std; 4 5 template <typename K, typename V> 6 class BST 7 { 8 private: 9 struct node // 类内定义类、结构体 10 { 11 K k ...
分类:
其他好文 时间:
2021-02-16 12:09:37
阅读次数:
0