__dirname与__filename

__dirname 

获取当前文件所在目录的完整路径
__filename
获取当前文件的完整路径和文件名

例如:

 

posted @ 2017-12-15 14:18  月月木有小情绪  阅读(219)  评论(0编辑  收藏  举报