HTML模板
template.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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> <link rel="stylesheet" type="text/css" href="css/style.css"/> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript"> //<![CDATA[ //先定义变量和函数 var abc = 123; function fn123(){ } ///////////////////////////// $(window).load(function(){ //模拟window.onload }); ////////////////////////////// $(function(){ //jQuery的ready代码开始 }); //]]> </script> <style type="text/css"> //这里写css样式 </style> </head> <body> </body> </html>