1、生成favicon.ico文件(生成网站) 2、前端页面头部引入 //其中href指向favicon.ico位置 <link rel="icon" href="static/images/favicon.ico" type="image/x-icon">