Converting any HTML template into a Django template The normal way Any HTML, CSS, JS or BootStrap template can be converted into a Django compatible t ...
分类:
Web程序 时间:
2020-09-18 02:57:40
阅读次数:
47
<template> <div> <div class="goods"> <div class="menu-wrapper" ref="menuWrapper"> <ul> <li v-for="(item,index) in dishes" :key="index" class="menu-ite ...
分类:
其他好文 时间:
2020-09-18 02:53:28
阅读次数:
28
在窗体页面的CS代码中添加 WindowStartupLocation = WindowStartupLocation.CenterScreen; public MainWindow() { WindowStartupLocation = WindowStartupLocation.CenterSc ...
Cotree 题意: 由N个点构成两棵树,问在两颗树之间连接一条边之后,各点之间距离和的最小值为多少 题解: 进行两次DFS找到两颗树的重心,将两个重心连接起来,再进行一次DFS求出距离和即可 #include <iostream> #include <map> #include <vector> ...
分类:
其他好文 时间:
2020-09-18 01:35:09
阅读次数:
30
先看效果: 再看结构,Viewer(影像控件)分为N个Cell(单元格),每个单元格分为N个Box(影像容器), 当默认情况为2x2的行列时,结构如下图: 其中,我们在WPF设计器中创建一个用户控件叫Viewer,使用Grid容器,默认2x2,再根据自己的业务需要创建用户控件Cell和用户控件Box ...
自定义组件 navbarvue (胶囊底部高度 - 状态栏的高度) + (胶囊顶部高度 - 状态栏内的高度) = 导航栏的高度 <template> <view class="navbar"> <view class="navbar-fixed"> <!-- 状态栏小程序撑起高度 --> <view ...
分类:
微信 时间:
2020-09-18 00:23:26
阅读次数:
73
2020年9月13日13:50:39 定义(what) 科比会三步上篮,我会三步上篮 科比会投篮,我会投篮 科比会打铁,我会打铁 科比 = 我 Define the skeleton of an algorithm in an operation, deferring some steps to s ...
分类:
其他好文 时间:
2020-09-18 00:06:34
阅读次数:
29
<Window x:Class="WpfApp1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/200 ...
1 #include <iostream> 2 #include<binaryNode.hpp> 3 #include<cassert> 4 #include<queue> 5 #include<vector> 6 7 using namespace std; 8 9 template<class ...
分类:
编程语言 时间:
2020-09-17 23:50:30
阅读次数:
40
注册全局快捷键,需要调用win32API,user32.dll中注册快捷键,和kernel32.dll中设置原子量,原子量用于保证注册的快捷键不会出现重复id 主要参考 https://www.cnblogs.com/leolion/p/4693514.html https://github.com ...