解释 官方文档中: The difference between min and minBy is that min returns the minimum value, whereas minBy returns the element that has the minimum value in ...
分类:
其他好文 时间:
2020-06-10 12:58:08
阅读次数:
127
<!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maxim ...
分类:
其他好文 时间:
2020-06-08 12:25:02
阅读次数:
88
{ OpenGL安装安装命令如下:$ sudo apt install build-essential $ sudo apt install libgl1-mesa-dev$ sudo apt install libglu1-mesa-dev $ sudo apt install freeglut3 ...
分类:
系统相关 时间:
2020-06-01 23:40:52
阅读次数:
167
login.html代码: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,m ...
分类:
数据库 时间:
2020-06-01 16:52:13
阅读次数:
75
给定一个矩阵,矩阵中的元素表示成本,求,从矩阵左上角到右下角最小的成本路线,每一次只能向右或者向下走。 Input:[ [1,3,1], [1,5,1], [4,2,1]]Output: 7Explanation: Because the path 1→3→1→1→1 minimizes the s ...
分类:
其他好文 时间:
2020-05-31 17:45:01
阅读次数:
54
Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the nearest l ...
分类:
其他好文 时间:
2020-05-31 00:45:36
阅读次数:
52
题目如下: Given an array of integers nums, you start with an initial positive value startValue. In each iteration, you calculate the step by step sum of s ...
分类:
其他好文 时间:
2020-05-29 09:26:12
阅读次数:
59
移动端常用适配,解决了1px像素看起来变粗的 问题 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>移动端常用适配</title> <script> /* 1.如何解决设备像素和CSS像素不一样的问题? 如果 ...
分类:
移动开发 时间:
2020-05-28 00:38:32
阅读次数:
82
meta篇 1.视窗宽度 <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/> 其中 width=devi ...
分类:
移动开发 时间:
2020-05-26 20:03:34
阅读次数:
79
SpringBoot整合MyBatis1、创建项目时勾选mybatis、数据库驱动。mysql驱动默认是8.x的版本,如果要使用5.x的版本,创建后到pom.xml中改。也可以手动添加依赖<dependency><groupId>org.mybatis.spring.boot</groupId><artifactId>mybatis-spring-b
分类:
编程语言 时间:
2020-05-25 09:35:58
阅读次数:
53