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>

相關文章
相關標籤/搜索