![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
sunsk.top
这个作者很懒,什么都没留下…
展开
-
js遍历数组和数组对象的方法
遍历数组// 数组 var arr = [0,2,4,6,8] var arr1=[] // ------------------------------------forEach console.log("-----------------forEach"); arr.forEach((item,index,arr)=>{ console.log(item + 0.5) .原创 2022-01-20 18:07:09 · 958 阅读 · 0 评论 -
函数方法常用动词
函数方法常用动词get 获取/set 设置,add 增加/remove 删除create 创建/destory 移除start 启动/stop 停止open 打开/close 关闭,read 读取/write 写入load 载入/save 保存,create 创建/destroy 销毁begin 开始/end 结束,backup 备份/restore 恢复import 导入/export 导出,split 分割/merge 合并inject 注入/extract 提取,attac原创 2021-12-02 23:06:54 · 205 阅读 · 0 评论