javascript中容易产生的内存泄漏
摘要:参考链接:http://www.ibm.com/developerworks/cn/web/wa-jsmemory/ 1.闭包 如果闭包里有setInterval或者其它的方法引用了闭包内部的变量,那闭包所在对象不会被释放。 2.控制台日志 console.log在控制台的时候,对象不会被释放。(即
阅读全文
posted @
2016-03-23 11:25
翻页工
阅读(153)
推荐(0)
如何使用ESlint
摘要:参考链接:https://github.com/eslint/eslint 查看当前文件的lint规则:在命令行输入 eslint --print-config file.js 一、ESLint跟JSLint和JSHint类似,但有以下区别: 1.使用Espree进行js解析(parse) 2.用A
阅读全文
posted @
2016-03-21 18:25
翻页工
阅读(13637)
推荐(0)
install nodejs npm git on ubuntu14.04.1
摘要:1.install nodejs Because of a conflict with another package, the executable from the Ubuntu repositories is called nodejs instead of node. Keep this i
阅读全文
posted @
2016-03-16 14:38
翻页工
阅读(236)
推荐(0)
sublime text3常用配置
摘要:1.配置tab操作为4个空格 Preferences->Settings-User-> 在打开的文件中加入: 2.配置每行最长80个字符
阅读全文
posted @
2016-03-13 16:08
翻页工
阅读(343)
推荐(0)