1、返回当前脚本的绝对路径 dirname(__FILE__) 2、本层目录和上层目录 ./ 表示当前层级 ../ 表示上一层 ../../ 表示上一层再上一层 转载于:https://www.cnblogs.com/freebarri/p/3514501.html