![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端爬坑日记
文章平均质量分 71
做个记录
Mr.Gameker
这个作者很懒,什么都没留下…
展开
-
第4记:字符串常用方法篇
文章目录一、JS字符串常用方法总结1、replace()2、split()3、toLowerCase()和toUpperCase()4、match() 一、JS字符串常用方法总结 1、replace() 在字符串中用一些字符替换另一些字符,或替换一个与正则表达式匹配的子串。 let str="hello WORLD"; let reg=/o/ig; //o为要替换的关键字,不能加引号,否则替换不生效,i忽略大小写,g表示全局查找。 let str1=str.replace(reg,"**") consol原创 2021-03-26 13:51:10 · 96 阅读 · 0 评论 -
第3记:数组需注意的方法篇
文章目录一、pandas是什么?二、使用步骤1.引入库2.读入数据总结 一、pandas是什么? 添加链接描述 示例:pandas 是基于NumPy 的一种工具,该工具是为了解决数据分析任务而创建的。 二、使用步骤 1.引入库 代码如下(示例): import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns import warnings warnings.filterwarning原创 2021-03-26 09:55:14 · 200 阅读 · 3 评论 -
第2记:流程控制语句篇
文章目录一、分支结构二、break和continue1. break关键字2. continue关键字三、循环1、for 循环2、for...in / for..of 循环3、while 循环4、do while 循环 一、分支结构 if…else 简单例子:判断是否闰年 let year = prompt('请输入年份') if (year % 4 == 0 && year % 100 == 0 || year % 400 == 0) { alert(原创 2021-03-16 12:00:03 · 110 阅读 · 0 评论