![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
Happy_ForestXie
不浮,不躁,做一个安静的人
展开
-
JS实现栈内存存储-10进制转2进制
var Stack = function(){ var items = [] //由后向前存储元素 this.push=(element)=>{ items.push(element) } //由后向前取出元素 this.pop=()=>{ return items.pop() } //判...原创 2019-05-04 17:04:50 · 271 阅读 · 0 评论 -
Js实现队存储 -传花算法
var Queue1 = function(){ var items = ['a','b','c','d','e'] //队-入 this.dequeue=(elment)=>{ items.push(elment) } //队-出 this.enqueue=()=>{ return items.shif...原创 2019-05-04 17:24:38 · 95 阅读 · 0 评论 -
Js实现-链表存储
var LinkList = function (){ var heard = null var length = 0 var node = function(element){ this.element = element this.next = null } // 向链表后面添加元素 this.append =...原创 2019-05-04 19:08:43 · 363 阅读 · 0 评论 -
Js实现二叉搜索树存储
var Stree = function (){ var root = null var Node = function(value){ this.value = value this.left = null this.right = null } // 递归插入数据 insertValue=(node,ne...翻译 2019-05-04 21:59:00 · 256 阅读 · 0 评论 -
Js-实现图的广度算法以及求最短路径
var Queue = function(){ var items = [] //队-存 // var item = function(name,priority){ // this.name = name // this.priority = priority // } this.enqueue=(elment)=>...翻译 2019-05-05 09:26:08 · 198 阅读 · 0 评论 -
请求封装 -axios\jsonp
import JsonP from 'jsonp' import axios from 'axios' import { Modal } from 'antd' export default class Axios { static jsonp(options) { return new Promise((resolve, reject) => { ...原创 2019-05-07 15:20:16 · 221 阅读 · 0 评论