只需在title标签上加个link标签即可
<link rel="icon" href="images/icon.png" >
<title>xxxxxx</title>
或者 在根目录下增加favicon.ico文件,整个项目都会生效