为啥没反应
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>我们互动下</title>
<script type="text/javascript">
function f1(){
var mychar;
mychar = confirm("JS进阶篇");
if(mychar == ture){
alert("关注JS高级篇");
}
</script>
</head>
<body>
<form>
<input type="button" value="这是一个按钮" onClick="f1()">
</form>
</body>
</html>