- function a() {
- b =function() {
- alert(1);
- };
- return this;
- }
- a.b =function() {
- alert(2);
- }
- a.prototype.b =function() {
- alert(3);
- }
- varb =function() {
- alert(4);
- }
- function b() {
- alert(5);
- }
- a.b();
- b();
- a().b();
- b();
- new a.b();
- new a().b();
- new new a().b();
来源: http://www.bubuko.com/infodetail-1955992.html