1.function getsdd(){}事件 async/await把异步进行设置成同步进行 var url = '/api/runtime/form/save'; function checkAdult(asbdata) { return asbdata.Date1617275438563 == ...
分类:
移动开发 时间:
2021-04-05 11:41:07
阅读次数:
0
function isMobile(){ if( navigator.userAgent.match(/Android/i)|| navigator.userAgent.match(/webOS/i)|| navigator.userAgent.match(/iPhone/i)|| navigato ...
分类:
其他好文 时间:
2021-04-02 13:34:15
阅读次数:
0
题目链接 #题目大意 求树上每个点到其他点的最大距离。 #解题思路 首先随便选择一个顶点作为根然后跑一遍dfs,记录每个顶点以其为根能到达的最大深度和次大深度,然后再跑一遍dfs,对于每个顶点,如果要到达一个距离最大的点,要么就是原来中的子树中的距离最大的点,要么就是经过父节点的某个点。 #代码 c ...
分类:
其他好文 时间:
2021-04-02 13:22:41
阅读次数:
0
@ 1 介绍 前置知识,可以看AQS(一)独占锁(基于JDK 8) ReentrantLock 是一个可重入的独占锁。 在独占模式中,isHeldExclusively 为 true 表示是对当前线程加锁,false 表示未加锁或者对其他线程加锁。 加锁状态由 state 标识,如果为0,则说明未加 ...
分类:
其他好文 时间:
2021-04-02 13:21:20
阅读次数:
0
简单的模拟 #include<bits/stdc++.h> using namespace std; int main() { int n,m; cin>>n>>m; int sum=0,max_loss=0,max_index; for(int i=0;i<n;i++){ int temp_sum ...
分类:
移动开发 时间:
2021-04-02 13:12:46
阅读次数:
0
Oracle中,使用rownum时,一排序rownum也跟着排序了,网上搜索资料说是因为排序的字段不是主键造成的, 然后我实际测试了一下,发现和是不是主键没有关系,自己想了一个笨的的方法,那就是先排序,把排序的结果 在查询一遍,并加上rownum。 例如: select a.*,rownum fro ...
分类:
数据库 时间:
2021-04-02 12:59:53
阅读次数:
0
export function createRulesByForm(form = {}, rules = [ { required: true, message: '这项是必填的', trigger: 'blur' }, { required: true, message: '这项是必填的', tr ...
分类:
其他好文 时间:
2021-04-01 13:42:50
阅读次数:
0
难度 easy 翻转一棵二叉树。 示例: 输入: 4 / 2 7 / \ / 1 3 6 9 输出: 4 / 7 2 / \ / 9 6 3 1 备注: 这个问题是受到 Max Howell 的 原问题 启发的 : 解题思路:这道题比较简单,就是用递归的方式求解的,如果root是空节点或者没有子节点 ...
分类:
其他好文 时间:
2021-04-01 13:37:05
阅读次数:
0
Hello, Mr. Houben, this is Zhou Yanzhuo. I returned to China after being in quarantine for a month before I was able to contact people. Now I have fin ...
分类:
其他好文 时间:
2021-04-01 13:16:40
阅读次数:
0
一个比较强的分析:针对item的乘除进行封装成方法,针对不同的方法进行item的乘除,但是还是不够简介 来个更加简洁的:这就有点像java里面的一些封装,多写这样的代码对之后的专业素养能有一个比较大的提升 原型: 原型prototype其实是function对象的一个属性,将其打印出来它也是对象。 ...
分类:
其他好文 时间:
2021-04-01 13:16:03
阅读次数:
0