
在tpl文件夹放置jquery.js,在模板文件开头引入.斜杠jquery.js,运行提示美元没有定义,图片已更新
EDIT
<script type="text/javascript" src="./jquery-1.4.full.js"></script>
<body>
<div>ssss2222222ssss</div>
<input type="submit" id="submit" />
</body>
Index_index.html代码如上,无法引入jqueryfirebug错误提示
<script src="./jquery-1.4.full.js" type="text/javascript">
<!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 content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>系统发生错误</title>
<style type="text/css">
*{ padding: 0; margin: 0; }
html{ overflow-y: scroll; }
body{ background: #fff; font-family: '微软雅黑'; color: #333; font-size: 16px; }
img{ border: 0; }
.error{ padding: 24px 48px; }
最佳答案
