用javascript 来嵌入,比如有一段代码很多页面都要用到,那么可以写一个javascript脚本 include.jsdocument.write('常用脚本');document.write('常用脚本');document.write('常用脚本');document.write('常用脚本');然后在需要的地方包含这个js文件,这样就可以实现在一个html页面包含代码了,需要修改的话可以修改js文件,就不用每个页去修改了;