javascript:第六章 F火狐 不能对 {}括号内的 函数进行预解析

<!DOCTYPE HTML>html

<html>ide

<head>函数

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">ui

<title>无标题文档</title>spa


<script>htm


// alert(a);// ...ip

alert( fn1 );// F火狐 不能对{}括号内的函数进行预解析utf-8


var a = 1;文档


//函数最好是放在外面it

function fn1(){

alert(123);

}


if( true ){

/*函数最好是放在外面

function fn1(){

alert(123);

}*/

}



</script>


</head>


<body>

</body>

</html>

相关文章
相关标签/搜索