05 2020 档案

摘要:阶乘 function mul(n){ if(n==1||n==0){ return 1; } return n*mul(n-1); } 斐波切纳数列 function fb(n){ if(n==1|| n==2){ return 1; } return fb(n-1)+fb(n-2); } 阅读全文
posted @ 2020-05-29 16:44 菜鸟程序员的总结 阅读(227) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2020-05-13 15:17 菜鸟程序员的总结 编辑
摘要:demo.js var tools={ test:function(){ console.log(a) }, demo:function(){ } } function loadscript(url,callback){ var script=document.createElement('scri 阅读全文
posted @ 2020-05-11 09:12 菜鸟程序员的总结 阅读(283) 评论(0) 推荐(0) 编辑
摘要:网上看到一篇特别经典的,所以直接分享一下 https://juejin.im/post/59e85eebf265da430d571f89 阮一峰老师的Promise https://es6.ruanyifeng.com/#docs/promise 阅读全文
posted @ 2020-05-09 17:29 菜鸟程序员的总结 阅读(544) 评论(0) 推荐(0) 编辑
摘要:callee是arguments的一个属性(arguments另一个属性是length) function test(){ console.log(arguments.callee) //返回test函数引用 ƒunction test(){} function demo(){ console.lo 阅读全文
posted @ 2020-05-08 13:53 菜鸟程序员的总结 阅读(494) 评论(0) 推荐(0) 编辑
摘要:首先在src目录新建一个vuex文件夹,并且创建一个store.js文件 store.js详细内容如下 import Vue from 'vue';import Vuex from 'vuex'; //注册vuexVue.use(Vuex); //const state={ userinfo:JSO 阅读全文
posted @ 2020-05-08 11:09 菜鸟程序员的总结 阅读(203) 评论(0) 推荐(0) 编辑
摘要:function isNaN(num){ var ret=Number(num); ret+=""; if(ret=="NaN"){ return true; }else{ return false; } } 阅读全文
posted @ 2020-05-07 10:50 菜鸟程序员的总结 阅读(727) 评论(0) 推荐(1) 编辑
摘要:<!doctype html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-w 阅读全文
posted @ 2020-05-07 10:23 菜鸟程序员的总结 阅读(760) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示