Javascript ~ function override or rewrite

function xxx()
{
 alert('xxx');
} 

function xxx()
{
 alert('new xxx');
}

if u call xxx()

it will alert 'new xxx'

http://dataerror.blogspot.com/2005/08/javascript-function-overriding-part-1.html

沒有留言: