var path = require("path"); var url = path.resolve('./'); 转载于:https://www.cnblogs.com/benchan2015/p/5048855.html