码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2016-08-18 14:38:08      阅读:113      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!