摘要: <script> function x() { } //为函数x的prototype原型对象添加add方法 x.prototype.add = function (a) { return a } var xxx = new x() console.log(xxx.add);//函数add conso 阅读全文
posted @ 2020-11-18 20:20 17135131xjt 阅读(128) 评论(0) 推荐(0) 编辑
摘要: ![](https://img2020.cnblogs.com/blog/1968139/202011/1968139-20201118180508411-11950698.png) 阅读全文
posted @ 2020-11-18 18:06 17135131xjt 阅读(122) 评论(0) 推荐(0) 编辑