//判断pc和手机 browserRedirect() { var sUserAgent = navigator.userAgent.toLowerCase(); if (/ipad|iphone|midp|rv:1.2.3.4|ucweb|android|windows ce|windows mo ...
分类:
移动开发 时间:
2021-05-25 18:31:07
阅读次数:
0
1、思路: 因为offsetTop、scrollTop等不属于css属性,所以这些无法用css动画或过度来实现。首先想到的是使用position + top 定位结合 transition 来实现。 2、效果: 3、原生代码: <!DOCTYPE html> <html lang="zh"> <he ...
分类:
Web程序 时间:
2021-05-25 18:28:37
阅读次数:
0
<template> <div class="hello"> <p v-show="isShow" style="color:red;font-size:25px;">{{str1}}</p> <p v-show="!isShow" style="color:green;font-size:25px ...
分类:
其他好文 时间:
2021-05-25 18:21:49
阅读次数:
0
BFS: #1.设置队列 from queue import Queue q = Queue() #2.设置closed表 closed = set()/[] #3.开始循环 while not q.empty(): #取出 a = q.get() #判断 if a not in cloesd : ...
分类:
编程语言 时间:
2021-05-25 18:19:31
阅读次数:
0
Java 获取GUID import java.util.UUID; public class guid { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stu ...
分类:
编程语言 时间:
2021-05-25 18:07:45
阅读次数:
0
public class Singleton { private volatile static Singleton singleton; private Singleton (){} public static Singleton getSingleton() { if (singleton == ...
分类:
其他好文 时间:
2021-05-25 18:05:10
阅读次数:
0
1、pom.xml文件添加依赖 <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.62</version> </dependency> 2、将对象转为json格式的字符 ...
分类:
编程语言 时间:
2021-05-25 17:44:13
阅读次数:
0
在数据库表中,对字段建立索引可以大大提高查询速度。通过善用这些索引,可以令MySQL的查询和 运行更加高效. 索引分类: MySql将一个表的索引都保存在同一个索引文件中, 如果对中数据进行增删改操作,MySql都会自动的更 新索引. 主键索引: 创建表的时候添加主键索引: CREATE TABLE ...
分类:
数据库 时间:
2021-05-25 17:40:22
阅读次数:
0
继承的格式 继承它描述的是两个类之间的关系,如果一个子类继承父类,那么子类可以使用父类非私有的成员。 1 public class 父类{ 2 //成员变量 3 //成员方法 4 } 5 6 public class 子类1 extends 父类{ 7 8 } 9 10 public class 子 ...
分类:
编程语言 时间:
2021-05-24 16:40:08
阅读次数:
0
一. IDEA 相关设置 1.1 去除SQL语句的黄色背景 Settings > Editor > Inspections > SQL No data sources configured 去掉对钩 SQL dialect detection 去掉对钩 Editor > Color Scheme > ...
分类:
其他好文 时间:
2021-05-24 16:35:04
阅读次数:
0