Valid Anagram (E) 题目 Given two strings s and t , write a function to determine if t is an anagram of s. Example 1: Input: s = "anagram", t = "nagaram" ...
分类:
其他好文 时间:
2021-02-15 12:41:17
阅读次数:
0
基础 axios.get('/user?ID=12345') .then(function (response) { // 成功 console.log(response); }) .catch(function (error) { // 失败 console.log(error); }) .the ...
分类:
移动开发 时间:
2021-02-15 12:39:12
阅读次数:
0
在老毛子的文章里看到的获取本地ip的方法。实现蛮简单。没找到多少关于idStack相关的说明,有空再去外网溜达看看。先记录下。 program 获取本地ip; {$APPTYPE CONSOLE} {$R *.res} uses IdStack; function GetIPLocal: strin ...
分类:
其他好文 时间:
2021-02-15 12:33:49
阅读次数:
0
uses SysUtils; // 生成GUID function TForm2.GetGUID: string; var LTep: TGUID; sGUID: string; begin CreateGUID(LTep); sGUID := GuidToString(LTep); sGUID : ...
引言 在写前端的时候经常用到js或jquery语法,有时候傻傻分不清,现在将学习过程中遇到的总结一下。 $(function(){ })的使用 JQuery 的代码我们通常会包裹在一个$(function(){})函数中,jq 的$(function(){})也就是$(document).ready ...
分类:
其他好文 时间:
2021-02-15 12:18:54
阅读次数:
0
在MongoDB所在路径创建log和data目录mkdir logmkdir data 在data目录下 创建master、slaver、arbiter路径 mkdir master mkdir slaver mkdir arbiter 新建日志文件在log下执行 touch mongodb.log ...
分类:
数据库 时间:
2021-02-15 11:54:26
阅读次数:
0
Copy List with Random Pointer (M) 题目 A linked list is given such that each node contains an additional random pointer which could point to any node in ...
分类:
其他好文 时间:
2021-02-15 11:52:08
阅读次数:
0
JS数据类型 基本数据类型 number string boolean undefined null 复杂数据类型/引用数据类型 array object function window.onload = function(){ var str = 'abc'; var num =123; var ...
分类:
Web程序 时间:
2021-02-10 13:42:28
阅读次数:
0
1、async是什么? async 作为一个关键字放到函数前面,用于表示函数是一个异步函数,因为async就是异步的意思, 异步函数也就意味着该函数的执行不会阻塞后面代码的执行。 2、async如何使用 写一个async 函数: async function timeout() { return ' ...
分类:
其他好文 时间:
2021-02-10 13:30:45
阅读次数:
0
背景:在vscode中看到好多人提交了错误答案,至此刻没有看到对的答案。哈哈 解法: function computeProduct(arr) { let max = 0 let zarr = [],farr = [] if(arr.length 3){ max = arr[0]*arr[1]*ar ...
分类:
编程语言 时间:
2021-02-10 13:07:31
阅读次数:
0