日期:2014-05-16 浏览次数:20361 次
/*javascript函数的定义方式分为俩种
1 通过function语句定义
又分为俩种
function f(){...} //命名方式
var fun = f(){...}; //匿名方式
2 通过Function对象来定义
*/
<script type="text/javascript">
/*
*/
function aa(e){
document.write(e+"<br/>");
}
function t1(){ //
aa("11");
}
t1();
function t1(){
aa("new 11");
}
t1();
t1 = function(){
aa("new new 11");
}
t1();
</script>