可以首先在要引用的js里把要调用的方法吗暴露出去put,get都是方法名module.exports = { put: put, get: get,}引用方式var cache = require("路径");cache.put();
可以的,直接require就好了