Fork me on GitHub

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

摘要: 理清restful API 基本含义 小结:符合rest设计规范的应用就是使用了restful API Node搭建 rest风格服务器代码: var express = require('express'); var app = express(); var fs = require("fs"); 阅读全文
posted @ 2020-11-09 15:32 365/24/60 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 快速排序 function quickSort(arr){ let len = arr.length // 这里长度小于3,直接内置sort排序了 if(len <= 2) return arr.sort() let low = 0 let high = len-1 let cur = arr[0] 阅读全文
posted @ 2020-11-09 14:01 365/24/60 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 在if/switch、while决定判断条件时,可以参考 var s1 = {} var s2 = undefined var s3 = null var s4 = "" var s5 = [] if(s1) console.log('true') // {} 被识别为true if(s2) con 阅读全文
posted @ 2020-11-09 12:57 365/24/60 阅读(81) 评论(0) 推荐(0) 编辑
摘要: function ListNode(x){ this.val = x; this.next = null; } function ReverseList(pHead) { if(pHead null || pHead.next null) return pHead let pre = null le 阅读全文
posted @ 2020-11-09 00:12 365/24/60 阅读(250) 评论(0) 推荐(0) 编辑