1 <script>
 2 var a=function(text)
 3 {
 4 alert(text);
 5 }
 6 a.b=function(text)
 7 {
 8 alert(text+text);
 9 }

window.a.b("这语法真乱");
10 </script>