
JavaScript
algzjh
这个作者很懒,什么都没留下…
展开
-
todolist(jQuery实现)
index-jQuery.html<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>todo list</title> <link href="static/bootstrap.min.css" rel="stylesheet"> </head> <body> <div cla原创 2017-06-29 21:23:57 · 4167 阅读 · 1 评论 -
JavaScript笔记
JavaScript学习笔记 数据类型 ECMASCript定义了8种数据类型 primitives Boolean null undefined Number BigInt String Symbol Object 函数 原始类型作为参数是值传递,对象则可以看做是引用传递 ...翻译 2019-07-18 19:48:51 · 331 阅读 · 0 评论 -
TypeScript学习笔记
TypeScript学习笔记 基本类型 Boolean let is Done: boolean = false; Number let decimal: number = 6; String let color: string = "blue"; Template strings let fullName: string = `Bob Bobbington`; let age: ...翻译 2019-07-13 14:14:58 · 338 阅读 · 0 评论 -
LeetCode-104. Maximum Depth of Binary Tree
Maximum Depth of Binary TreeGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node./** * Definiti原创 2017-06-27 22:06:08 · 553 阅读 · 0 评论 -
LeetCode-94. Binary Tree Inorder Traversal
Binary Tree Inorder TraversalGiven a binary tree, return the inorder traversal of its nodes’ values.For example: Given binary tree [1,null,2,3], 1 \ 2 / 3 return [1,3,2].Note:原创 2017-06-27 21:59:56 · 515 阅读 · 0 评论 -
LeetCode-2. Add Two Numbers
Add Two NumbersYou are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two number原创 2017-06-27 21:42:49 · 468 阅读 · 0 评论 -
LeetCode-206. Reverse Linked List
Reverse Linked ListReverse a singly linked list./** * Definition for singly-linked list. * function ListNode(val) { * this.val = val; * this.next = null; * } */ /** * @param {ListNode} h原创 2017-06-27 21:26:34 · 480 阅读 · 0 评论 -
LeetCode-1. Two Sum
Two SumGiven an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and you may not use the s原创 2017-06-27 20:40:18 · 449 阅读 · 0 评论 -
ToDoMVC ( jQuery )
index.html<!doctype html> <html lang="en" data-framework="jquery"> <head> <meta charset="utf-8"> <title>jQuery • TodoMVC</title> <link rel="stylesheet" href="node_modules/to转载 2017-07-15 10:20:44 · 1283 阅读 · 0 评论 -
D3.js学习笔记
d3.js处理模板 // d3 template var dataset = [10, 20, 30] var p = d3.select("body").select("p"); var update = p.data(dataset); var enter = update.enter(); var exit = update.exit(); update.text( function(...原创 2019-08-21 20:35:30 · 487 阅读 · 0 评论