<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> new document </title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="editplus" /> <meta name="author" content="" /> <meta name="keywords" content="" /> <meta name="description" content="" /> <script type="text/javascript" src="/jquery-1.3.2.js"></script> <script type="text/javascript" src="/jquery-ui-1.7.1.js"></script> <script type="text/javascript" src="/my-ui.js"></script><!-- 我自己的ui扩展 --> </head> <body> <!--#include virtual="/childpage.html"--> </body> </html>
其中childpage.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> new document </title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="editplus" /> <meta name="author" content="" /> <meta name="keywords" content="" /> <meta name="description" content="" /> </head> <body> </body> <script type="text/javascript" src="/jquery-1.3.2.js"></script> <script type="text/javascript" src="/jquery-ui-1.7.1.js"></script> <script type="text/javascript" src="/my-ui.js"></script><!-- 我自己的ui扩展 --> </html>
这样可能出现你自己的ui控件无效
js并不报错
也即为有些网友说的
会因为冲突而导致没有效果。