等于号哪去了?
<!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><script type="text/javascript">function count(){ var txt1,txt2,select,result; txt1=parseInt(document.getElementById('txt1').value); txt2=parseInt(document.getElementById('txt2').value); select=document.getElementById('select').value; switch(select){ case '+': result=txt1+txt2; break; case '-': result=txt1-txt2; break; case '*': result=txt1*txt2; break; case '/': result=txt1/txt2; break; } result=document.getElementById('fruit').value; }</script></head><body> <input type='text' id='txt1'/> <select id='select'> <option value='+'>+</option> <option value='-'>-</option> <option value='*'>*</option> <option value='/'>*</option> </select> <input type='text' id='txt2' /> <iput type='button' value=' = ' onclick='count()'/> <input type='txt' id='fruit'/> </body></html>
这段代码有什么问题吗?怎么在浏览器里面显示出来没有等于号“=”