06 2016 档案
摘要:前言 underscore虽然有点过时,这些年要慢慢被Lodash给淘汰或合并。 但通过看它的源码,还是能学到一个库的封装和扩展方式。 第一步,不污染全局环境。 ES5中的JS作用域是函数作用域。 函数内部可以直接读取全局变量,当然函数外部无法读取函数内的局部变量。 所以,我们在匿名函数里啪啪啪写代
阅读全文
摘要:下载nodewebx(windows环境) 为什么要下载inherits,因为nodewebx依赖它。。。 构建目录,构建配置文件 \templates\test\control\ \templates\test\layout\default.vm \templates\test\screen\in
阅读全文