案例:实现步骤 1. 实现静态UI效果 用传统的方式实现标签结构和样式 2. 基于数据重构UI效果 将静态的结构和样式重构为基于Vue模板语法的形式 处理事件绑定和js控制逻辑 3. 声明式编程 模板的结构和最终显示的效果基本一致 HTML 结构 ` <div id="app"> <div clas ...
分类:
其他好文 时间:
2020-12-01 12:37:33
阅读次数:
10
很多场景我们需要根据多个表的某字段进行关联更新。 select * from table1 t1; select * from table2 t2; 现需求:参照table2表修改table1表,修改条件为两表的fname列内容一致。 常见陷阱: update table1 t1 set t1.fm ...
分类:
数据库 时间:
2020-12-01 12:27:08
阅读次数:
14
HTML: css(sass): 复制代码 .info &:hover::after { content: attr(data-title); display: inline-block; width: 70px; height: 22px; border: 1px solid #0088d8; f ...
分类:
Web程序 时间:
2020-12-01 12:24:49
阅读次数:
10
先看效果图: 实现步骤 : 1.新建一个.css的文件,先把样式拷过来 1 .popup_right_bottom{position: fixed; width:400px; height: auto; bottom: 10px; right: 10px; z-index:100; backgrou ...
分类:
其他好文 时间:
2020-12-01 12:16:46
阅读次数:
5
super super(props): Superclass will help you to keep the props:[^ props] import React, { Component } from "react"; export default class App extends Co ...
分类:
其他好文 时间:
2020-12-01 12:16:33
阅读次数:
4
1 下载tff格式的字体 2 assets中新建文件夹fonts,把tff字体文件放在fonts,并在assets/css中新建font.css @font-face { font-family: "Acy"; src: url('../fonts/Acy.ttf') format('truetyp ...
分类:
其他好文 时间:
2020-12-01 12:11:53
阅读次数:
6
Swift 存储型属性、计算型属性、类型型属性 存储型属性:用于存储一个常量或变量。 计算型属性:不直接存储值,而是通过get、set方法来取值或赋值。同时还可以对其他的属性进行操作。 类型型属性:定义在类上的属性,用static 来修饰属性,需要用类名来调用该属性。 完全由于 非静态量调用时自动调 ...
分类:
编程语言 时间:
2020-12-01 12:08:02
阅读次数:
6
int countLargestGroup(int n){ int hash[37]={0}; int map[10001]={0}; int i, sum, tmp, max=0, cnt=0; for(i=1; i<=n; i++){ map[i]=map[i/10]+i%10; hash[ma ...
分类:
其他好文 时间:
2020-12-01 12:05:58
阅读次数:
4
###Python之禅 import this ###常用计算 a ** 2 # 乘方计算 a % 2 # 求模 a // 2 # 求商 ###字符串 name = 'ross geller' name.title() # 单词首字母大写 name.upper() # 字符全大写 name.lowe ...
分类:
编程语言 时间:
2020-12-01 12:01:46
阅读次数:
5
CSS去除表单的默认样式; 去除文本框小蓝框; 去除文本框小红框; 去除多行文本框拖拽; /*去除*/ input{ border-radius: 0; } /*去除Chrome等浏览器文本框默认发光边框*/ input:focus, textarea:focus { outline: none; ...
分类:
Web程序 时间:
2020-12-01 12:00:36
阅读次数:
10