摘要: var arr = new Array(5);arr[0] = "amy";arr[1] = "elice";arr[2] = "divi";arr[3] = "lvy";arr[4] = "marry";arr.splice(1, 2, "willian");console.log(arr);// 阅读全文
posted @ 2017-11-09 15:15 wsymxzlove 阅读(106) 评论(0) 推荐(0) 编辑
摘要: React Native中的component跟Android中的activity,fragment等一样,存在生命周期,下面先给出component的生命周期图 getDefaultProps object getDefaultProps() 执行过一次后,被创建的类会有缓存,映射的值会存在thi 阅读全文
posted @ 2017-11-09 14:46 wsymxzlove 阅读(170) 评论(0) 推荐(0) 编辑