##1、安装插件 安装: npm install lib-flexible postcss-px2rem ##2、删除public中index.html里面的meta标签 删除<meta name='viewport'>标签,flexible会自动为页面添加此标签,动态控制initial-scale ...
分类:
移动开发 时间:
2021-01-18 11:29:59
阅读次数:
0
package test;import java.sql.*;public class retrieve { public static void main(String[] args) { try { Class.forName("com.mysql.jdbc.Driver"); } catch ...
分类:
数据库 时间:
2021-01-18 11:27:02
阅读次数:
0
import java.util.*; public class Solution { /** * * @param n int整型 总台阶数量 * @return int整型 */ //有 n 个台阶,你一次能走 1 个或者 2 个台阶,那么请问,走完这 n 个台阶共有几种方式? //备忘录模式 ...
分类:
编程语言 时间:
2021-01-18 11:22:40
阅读次数:
0
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.d ...
分类:
其他好文 时间:
2021-01-18 11:20:24
阅读次数:
0
import java.io.IOException; import java.nio.ByteBuffer; import java.nio.channels.Pipe; import org.junit.Test; public class TestPipe { @Test public voi ...
分类:
其他好文 时间:
2021-01-18 11:00:46
阅读次数:
0
一、异步任务 1、启动类上添加@EnableAsync注解,启用异步模式 2、方法上添加@Async注解 /** * @author liangd * date 2020-12-15 10:49 * code 异步任务 */ @Service public class AsyncService { ...
分类:
编程语言 时间:
2021-01-18 10:54:40
阅读次数:
0
import java.util.Arrays; public class SelectSort { public static void main(String[] args) { int a[] = {5, 4, 3, 2, 1}; int[] result = selectSort(a); S ...
分类:
编程语言 时间:
2021-01-18 10:44:44
阅读次数:
0
public class test11 { public static void main(String[] args) { int [][]grid={{1,0,0,0},{1,1,0,0}}; int [][]hits={{1,1},{1,0}}; int []result=hitBricks( ...
分类:
其他好文 时间:
2021-01-18 10:36:45
阅读次数:
0
原文地址:https://www.cnblogs.com/lixiuyu/p/5923160.html 桥接模式(Bridge)是一种结构型设计模式。Bridge 模式基于类的最小设计原则,通过使用封装、聚合及继承等行为让不同的类承担不同的职责。它的主要特点是把抽象 (Abstraction) 与行 ...
分类:
其他好文 时间:
2021-01-18 10:33:07
阅读次数:
0
1.【不好的解法】只适用于单线程环境 缺陷:当两个线程同时执行到 if (instance == null) 时,两个线程均会创建一个实例 //只适用于单线程环境 public class Singleton{ //将无参构造函数私有化,避免外部自行初始化 private Singleton(){} ...
分类:
其他好文 时间:
2021-01-16 11:51:34
阅读次数:
0