Date的格式总结: G: 公元时代,例如AD公元 yy: 年的后2位 yyyy: 完整年 MM: 月,显示为1-12 MMM: 月,显示为英文月份简写,如 Jan MMMM: 月,显示为英文月份全称,如 Janualy dd: 日,2位数表示,如02 d: 日,1-2位显示,如 2 EEE: 简写 ...
分类:
移动开发 时间:
2020-07-30 14:28:45
阅读次数:
94
var num =2.446242342; num = num.toFixed(2); // 输出结果为 2.45 另外像 round()、floor()、ceil() 等都不能真正的四舍五入,有精度问题。 round() 可以通过以下方式来确保精度是正确的: var num =2.44624234 ...
分类:
Web程序 时间:
2020-07-30 14:14:37
阅读次数:
87
首先放下作者大大的github地址:https://github.com/SJanJan/keep-web 接着我们看下项目 //main.js import Vue from 'vue' import App from './App.vue' import '@/styles/reset.scss ...
分类:
Web程序 时间:
2020-07-30 01:19:24
阅读次数:
97
In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different size but keep its original data. ...
分类:
其他好文 时间:
2020-07-29 15:35:58
阅读次数:
76
public R startProcess(@RequestBody ShouldCredentialPayable bean) { System.out.println("应付贷项参数bean "+bean); //开启审批流程之前先验证库存 boolean judge=false; if(nul ...
分类:
其他好文 时间:
2020-07-29 15:32:49
阅读次数:
72
Leetcode.27 | Remove Element(Python) Given an array nums and a value val, remove all instances of that value in-place and return the new length. Do no ...
分类:
编程语言 时间:
2020-07-29 14:58:26
阅读次数:
82
function createStyle(){ return"*{padding:0;margin:0;border:0}.loading{width:640px;height:1024px;margin:0 auto}.loadImg{width:640px;height:1024px;anima ...
分类:
Web程序 时间:
2020-07-29 12:39:59
阅读次数:
206
Given a string P consisting of only parentheses and asterisk characters (i.e. "(", ")" and ""), you are asked to replace all the asterisk characters i ...
分类:
其他好文 时间:
2020-07-29 12:38:40
阅读次数:
208
【螺旋矩阵】三部曲:1、[ 找到 m、n ] 2、[ 开二维数组填充矩阵 ] 3、[ 输出矩阵 ] 1 #include<bits/stdc++.h> 2 using namespace std; 3 4 bool cmp(int a, int b) { return a > b; } 5 6 in ...
分类:
其他好文 时间:
2020-07-28 22:39:21
阅读次数:
70
方案一: 设置tranform/scale 首先设置内容固定宽度、自动高度(以下举例) width: 375px; height: auto; 通过获取窗口的宽度与固定宽度相除,获得缩放比例 const scaleValue=window.innerWidth / 375 在html层,添加一段sc ...
分类:
移动开发 时间:
2020-07-28 22:30:53
阅读次数:
105