node项目中npm 第三方包引用规则
摘要:// 在node项目中我们通常会使用到第三方的依赖包,如下面的代码var template = require('art-template') 程序是如何加载到第三方包的文件呢? 在当前项目的根目录下找到node_module的目录 在node_module目录中找到art-template的目录
阅读全文
js 本地保存 json/txt 文件
摘要:function download(filename, text) { var pom = document.createElement('a'); pom.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURICompon
阅读全文