会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Code change my mind
You have to believe in yourself. That's the secret of success.
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
···
11
下一页
2019年5月18日
二叉树实现思路
摘要: // 二叉树实现思路 function BinaryTree() { var Node = function (key) { this.key = key; this.left = null; this.right = null; }; var root = null; var insertNode
阅读全文
posted @ 2019-05-18 16:38 focus_yaya
阅读(386)
评论(0)
推荐(0)
2019年5月16日
typescript总结
摘要: 1,基础类型 { 布尔值,let isDone:Boolean=true; 数字,let decLiteral:number=true; 字符串,let name:string="bob"; 数组,let list:number[]=[1,2,3]; 元组Tuple 定义二种类型, let x: [
阅读全文
posted @ 2019-05-16 10:23 focus_yaya
阅读(495)
评论(0)
推荐(0)
2019年5月15日
V8引擎回收机制、 内存泄露
摘要: 一、垃圾回收:将内存不在使用的数据进行清理,释放内存空间 v8将内存分为新生代空间和老生代的空间 新生代空间:用于存活较短的对象 :又分为二个空间:from空间和to空间 :Scavenge GC算法:当 from 空间被占满时,启动 GC 算法 存活的对象从 from space 转移到 to s
阅读全文
posted @ 2019-05-15 15:30 focus_yaya
阅读(550)
评论(0)
推荐(0)
2019年5月14日
定制团队自己的 Vue template
摘要: 一,我们使用vue-cli 可以快速初始化vue.js的项目,官方提供了webpack,pwa,browserify-sipmple,等常用template 二、置知识1,模板结构template:该目录主要存放模板文件,初始化项目生成文件来源与此meta.js/meta.json:用于描述初始化项
阅读全文
posted @ 2019-05-14 19:17 focus_yaya
阅读(462)
评论(0)
推荐(0)
2019年5月12日
字符串模板编译
摘要: let template = ` <ul> <% for(let i=0; i < data.supplies.length; i++) { %> <li><%= data.supplies[i] %></li> <% } %> </ul> `; echo('<ul>'); for (let i =
阅读全文
posted @ 2019-05-12 19:54 focus_yaya
阅读(412)
评论(0)
推荐(0)
2019年5月11日
nodejs,事件轮询总结
摘要: 宏任务 script,setTimeoout,setInterval,setlmmediate(node 独有),I/o,render渲染 微任务 process.nextTick(),promise 1,执行timers阶段,执行setTimeOut()和setInterval到期的calback
阅读全文
posted @ 2019-05-11 16:06 focus_yaya
阅读(749)
评论(0)
推荐(0)
2019年5月9日
webpack的理解、总结
摘要: weabpck的基础应用 https://blog.zhangjd.me/2016/06/19/webpack-your-bags/ wbepck插件实现 https://www.cnblogs.com/MuYunyun/p/8875908.html 总结 核心概念: webpack的模块打包工具,
阅读全文
posted @ 2019-05-09 18:49 focus_yaya
阅读(849)
评论(0)
推荐(0)
手动实现一个vue的mvvm,思路解析
摘要: 1、解析dom、fragment编译,初始化new watcher 2 ,数据劫持,Object.defineProperty(obj,key,{ configurable:true,// 可以配置 enumerable:true, // 可以枚举 get:function(){return val
阅读全文
posted @ 2019-05-09 12:19 focus_yaya
阅读(536)
评论(0)
推荐(0)
2019年4月27日
babel分析
摘要: 现在都用 ES6 新语法以及 ES7 新特性来写应用了,但是浏览器和相关的环境还不能友好的支持,需要用到 Babel 转码器来转换成 ES5 的代码 相信大家都看到过如下的名词: babel-preset-*babel-plugin-*babel-clibabel-nodebabel-corebab
阅读全文
posted @ 2019-04-27 19:06 focus_yaya
阅读(268)
评论(0)
推荐(0)
2019年4月9日
.Karma+Jasmine+karma-coverage
摘要: 单元测试(模块测试)是开发者编写的一小段代码,用于检验被测代码的一个很小的、很明确的功能是否正确。通常而言,一个单元测试是用于判断某个特定条件(或者场景)下某个特定函数的行为。Karma是一个基于Node.js的JavaScript测试执行过程管理工具( Test Runner ).。该工具可用于测
阅读全文
posted @ 2019-04-09 17:31 focus_yaya
阅读(384)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
11
下一页
公告