小白关于alert不执行的问题
是下面这么写的
<html>
<script type = 'text/javascript'>
var a = 3;
var b = 'name';
var c = null;
alert('a的类型为 ' + (typeof a) + '\nb的类型为 ' + (type b) + '\nc的类型为 ' + (typeof c));
</script>
</html>
打开网页没反应
写成下面这样
<html>
<script type = 'text/javascript'>
alert('提示');
</script>
</html>
就没问题。
这是怎么回事?
刚接触,也没人问,请大家多多指导。