04 2020 档案

摘要:1.字符方法charAt()和charCodeAt();这两个方法都接收一个参数stringValue[index]方法也返回特定位置的单个字符 var stringValue = "hello world";stringValue.charAt(1);//"e"=>以单字符字符串的形式返回给定位置 阅读全文
posted @ 2020-04-09 17:36 一波王炸 阅读(319) 评论(0) 推荐(0)
摘要:Software testing is the headlights, quality is the journey, business outcomes are the destination. Ann-Marie Charrett 阅读全文
posted @ 2020-04-07 12:16 一波王炸 阅读(172) 评论(0) 推荐(0)
摘要:声明 var map = new Map(); 设值 map.set("key","value"); 取值 map.get("key"); 判断key是否存在 map.has("key"); 删除key map.delete("key"); 阅读全文
posted @ 2020-04-02 13:47 一波王炸 阅读(2904) 评论(0) 推荐(0)
摘要:var mycars = new Array();mycars[0] = "Saab";mycars[1] = "Volvo";mycars[2] = "BMW"; var myCars=new Array("Saab","Volvo","BMW"); var myCars=["Saab","Vol 阅读全文
posted @ 2020-04-02 13:23 一波王炸 阅读(546) 评论(0) 推荐(0)