![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
javascript
Velly_zheng
这个作者很懒,什么都没留下…
展开
-
javascript Reflect对象
Reflect.ownKeys() //获取key-value中的key String.fromCharCode() //返回数字对应的字符 Reflect.apply(String.fromCharCode,undefined,code_list) //等同于String.fromCharCode(...code_list) Reflect.construct(Array,[7...原创 2020-01-09 10:22:51 · 230 阅读 · 0 评论 -
javascript处理日期和时间
1.显示时间 let special = new Date('2020/5/20') special.getDate() //返回20 special.getDay() //返回星期几 星期天是0,星期一至星期六是1-6 special.getMonth() //返回月份 1月至12月 对应0-11 special.getFullYear() //返回公元年份 20...原创 2020-01-08 10:34:44 · 494 阅读 · 0 评论 -
javascript相关属性记录
let my_love = Object.create({name:'Cindy',occupation:'angel'},{age:{value:18,writable:false,enumerable:false,configurable:false}}); 1.上述语句中,writable:false 表示不可再次被写入; enumerable:false 不可被迭代/枚举 co...原创 2020-01-07 10:08:32 · 118 阅读 · 0 评论