#多分支 if (条件表达式1) { 语句1 } else if (条件表达式2) { 语句2 } else { 语句3 } #三元表达式 条件表达式 ? 表达式1 : 表达式2 //真1假2 ##案例 var time = prompt('请输入一个1~59的数字') time = time > ...
分类:
Web程序 时间:
2021-06-02 15:06:09
阅读次数:
0
golang中的package time提供了用来表示时间的相关数据结构,包括: time.Location 表示一个时区信息; time.Time 表示一个带时区的时间信息; time.Duration 表示一个可转换成任意单位的时间长度信息; time.Ticker 表示一个周期定时器,用来执行 ...
分类:
其他好文 时间:
2021-06-02 14:59:55
阅读次数:
0
接口、内部类、异常[简单分类、异常体系结构、Error、Exception] ...
分类:
编程语言 时间:
2021-06-02 14:59:24
阅读次数:
0
How Long Does It Take Given the relations of all the activities of a project, you are supposed to find the earliest completion time of the project. In ...
分类:
其他好文 时间:
2021-06-02 14:53:07
阅读次数:
0
class ImgSpider(scrapy.Spider): name = 'img' # allowed_domains = ['https://sc.chinaz.com/tupian/'] start_urls = ['https://sc.chinaz.com/tupian/'] def ...
分类:
编程语言 时间:
2021-06-02 14:49:06
阅读次数:
0
背景 go 操作 ftp , 使用 github.com/jlaffaye/ftp这个库 问题复现 登录时报错,错误如题 解决方案 添加参数,禁用 utf8 ftp.Dial("ftp.example.com:21", ftp.DialWithTimeout(5*time.Second), ftp. ...
分类:
其他好文 时间:
2021-06-02 14:45:08
阅读次数:
0
利用django.utils.dateparse 将各种类型字符串处理为datetime from django.utils import dateparse date_time=dateparse.parse_datetime("2021-05-28T00:00:00") 利用django.uti ...
分类:
其他好文 时间:
2021-06-02 14:14:01
阅读次数:
0
防抖函数 事件被触发时,在n秒后执行函数,在n秒内多次触发事件,则重新开始计时 利用定时器来实现,在n秒内多次触发,则先清除定时器,从新计时 1 // 定义一个请求函数 2 function request(val) { 3 console.log("request: " + val); 4 } 5 ...
分类:
其他好文 时间:
2021-06-02 13:52:05
阅读次数:
0
为了保证通信质量和服务质量,我们需要制定靠谱的协议,下面我们的分析的过程就是来学习制定好的协议需要考虑什么因素
考虑最简单的点对点通信,只有一个发送者和一个接收者 ...
分类:
其他好文 时间:
2021-06-02 13:44:44
阅读次数:
0
css modules与antd一起使用时,antd样式不生效解决方案 最近在做历史项目的依赖升级,历史依赖版本: "react": "^15.5.4", "react-dom": "^15.5.4", "antd": "^2.10.1", "autoprefixer": "6.7.2", "bab ...
分类:
Web程序 时间:
2021-06-02 13:26:27
阅读次数:
0