哪里错了?
哪里错了呢?
<script type="text/javascript"> function hh(){ var case = prompt("请输入"); if(case=="JS进阶篇"){ alert="关注JS高级篇"; }else if(case==""){ alert="输入为空"; }else{ alert="输入错误"; } } </script> <input type="button" value="互动" onclick="hh()" />
哪里错了呢?
<script type="text/javascript"> function hh(){ var case = prompt("请输入"); if(case=="JS进阶篇"){ alert="关注JS高级篇"; }else if(case==""){ alert="输入为空"; }else{ alert="输入错误"; } } </script> <input type="button" value="互动" onclick="hh()" />
2016-05-30
举报