1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
| function bb(){ alert('bb'); } var b = new bb();
function cc(){ return 1; }
var dd=function(){ return "啊打"; };
function ee(){ this.name="李小龙"; this.age="30"; }
var e = new ee();
console.log(typeof(aa)); console.log(typeof(bb)); console.log(typeof(b)); console.log(typeof(cc)); console.log(cc()); console.log(typeof(dd)); console.log(typeof(ee)); console.log(typeof(e));
object function object function 1 function function object
|
Javascript进阶之路-论对象的重要性 ****
js中创建对象的几种方式示例介绍
JS函数与面向对象