首页 > 其他 > 详细

F火狐 不能对 {}括号内的 函数进行预解析

时间:2016-08-18 14:35:00      阅读:115      评论:0      收藏:0      [点我收藏+]

<!DOCTYPE HTML>

<html>

<head>

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

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


<script>


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

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


var a = 1;


//函数最好是放在外面

function fn1(){

alert(123);

}


if( true ){

/*函数最好是放在外面

function fn1(){

alert(123);

}*/

}



</script>


</head>


<body>

</body>

</html>



本文出自 “春天里!” 博客,转载请与作者联系!

F火狐 不能对 {}括号内的 函数进行预解析

原文:http://11180930.blog.51cto.com/11170930/1839922

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!