最近在类似于滴滴软件的一款小程序,工程确实有点大,很多东西都是第一次做。这次记录一下关于左滑删除的一个代码记录。主要的思想就是计算滑动距离的大小来使用css中的 transition 控制滑动的效果,主流的都是控制边距margin来达到左滑的效果。 根据我所拿到的ui,我所运用的是使用宽度和radi ...
分类:
微信 时间:
2020-06-04 19:26:24
阅读次数:
133
定义和用法 CONVERT() 函数是把日期转换为新数据类型的通用函数。 CONVERT() 函数可以用不同的格式显示日期/时间数据。 语法 CONVERT(data_type(length),data_to_be_converted,style) 所取长度 时间 所取类型 例子SQL: SELEC ...
分类:
数据库 时间:
2020-06-04 10:36:31
阅读次数:
356
import sys import time def get_terminal_size(): """Get (width, height) of the current terminal.""" try: import fcntl, termios, struct # fcntl module o ...
分类:
编程语言 时间:
2020-06-02 20:35:52
阅读次数:
82
零 背景: ibtmp1暴涨.需要汇总用到ibtmp1原因 一 查询操作类型 1 group by (8.0之前默认排序,如需避免需要加order by null) 2 group by a order by b 3 order by b 4 union 5 select a from (selec ...
分类:
数据库 时间:
2020-06-02 10:55:44
阅读次数:
88
(1)Editor -- General -- Auto Import 打勾 Add unambiguous imports on the fly 打勾 Optimize imports on the fly (for current project) (自动导包) (2)ctrl + y 由原来的 ...
分类:
其他好文 时间:
2020-06-02 09:45:03
阅读次数:
87
Option Explicit ValidationMode = True InteractiveMode = im_Batch Dim mdl ' the current model ' get the current active model Set mdl = ActiveModel If ( ...
分类:
其他好文 时间:
2020-06-01 13:35:59
阅读次数:
83
mysql5.7设置简单密码报错ERROR 1819 (HY000): Your password does not satisfy the current policy requirements 【问题】 有时候,只是为了自己测试,不想密码设置得那么复杂,譬如只想设置root的密码为123456。 ...
分类:
数据库 时间:
2020-05-31 22:10:16
阅读次数:
92
依次执行 1 - 5 步,实现 注释转名称 或者名称转注释,两个转换脚本附上 1. 名称转注释脚本: Option Explicit ValidationMode = True InteractiveMode = im_Batch Dim mdl ' the current model ' get ...
分类:
其他好文 时间:
2020-05-31 21:34:31
阅读次数:
61
1、前言 HashMap是面试中经常问到的一个知识点,也是判断一个候选人基础是否扎实的标准之一,因为通过HashMap可以引出很多知识点,比如数据结构(数组、链表、红黑树)、equals和hashcode方法,除此之外还可以引出线程安全的问题,HashMap是我在初学阶段学到的设计的最为巧妙的集合, ...
分类:
其他好文 时间:
2020-05-31 19:58:12
阅读次数:
59
forEach() 方法对数组的每个元素执行一次给定的函数。只对数组有效 语法: arr.forEach(callback(currentValue [, index [, array]])[, thisArg]) 参数: arr.forEach有三个参数,分别是: 1、arr:被遍历的数组 2、c ...
分类:
编程语言 时间:
2020-05-31 19:44:24
阅读次数:
82