1.function aa()
function aa()是定义的函数
function aa(){var a=5;}var c = aa(); //aa函数已经执行完,c 代表bb变量并没有被收回
2.aa:function()
aa:function() 是在函数内部定义的函数方法,可以在函数内部使用aa调用,
var a={ aa:function(){}, // 定义a的方法 k:1 // 定义a的属性}// 使用a的方法a.aa(); // 执行aa()里的代码