1 //函数申明 --- 弱类型语言输出不了地址 2 //函数申明--thieFirstName.name=theFirstName 3 function theFirstName() 4 { 5 6 } 7 document.write(theFirstName); 8 9 //函数表达式----表达式忽略后面的abc名---test.name=abc 10 var test = function abc(){ 11 12 } 13 //匿名表达式---test.name=test 14 var test = function(){ 15 16 } 17 </script>