![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
面对对象
花菜的棉花糖
这个作者很懒,什么都没留下…
展开
-
2021-03-10
js之单例模式原创 2021-03-10 16:48:14 · 43 阅读 · 0 评论 -
2021-03-10
js之工厂模式原创 2021-03-10 16:42:39 · 46 阅读 · 0 评论 -
2021-03-10
函数柯里化和偏函数原创 2021-03-10 16:12:44 · 46 阅读 · 0 评论 -
2021-03-10
JSON.parse 和JSON.stringify<script> var data='{"name":"Tom"}' //定义字符串 console.log(JSON.parse(data)) //解析对象 var dat={name:'amy'} console.log(JSON.stringify(dat)) </script>原创 2021-03-10 15:56:26 · 52 阅读 · 0 评论 -
2021-03-09
js Object.definePropert Object.defineProperty(Person.prototype,'showAge',{ value:function(){ console.log('I am ' + this.age + ' years old') }格式 Object.defineProperty(object,propName,descriptor) object:给谁加 p...原创 2021-03-09 16:29:39 · 46 阅读 · 0 评论