摘要: 首先用一个例子指出来constructor存在形式。 function Fruit(){ } var f=new Fruit(); console.log(f.constructor);//打印出Fruit() 由上面的代码我们总结出结论1:上面的代码在控制台可以看出constructor是指向构造 阅读全文
posted @ 2020-08-19 20:21 pengxp2008 阅读(301) 评论(0) 推荐(0)