- 论坛徽章:
- 0
|
怪了,JS不能执行,错在哪里?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<link rel="stylesheet" href="[% c.uri_for('/static/css/yonghu.css') %]" />
<script language
="JavaScript" type="text/javascript">
function dsx() {
alert('hello');
}
</script>
</head>
<body>
<select name="dyhsx" onChange="dsx()">
<option>选择属性</option>
<option>管理员</option>
<option>操作员</option>
</select>
<input type="submit" name="submit" value="删除" class="submityonghu" />
</body>
</html>
onchange=" alert('hello');" 就可执行,为什么?
还有,在函数DSX()里写上JS语句,好象也不执行.晕啊!
仙子,帮我看看吧,谢了! |
|