#多分支 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
JSP简介 JSP全称是Java Server Pages,是一种动态网页技术,JSP其实就是在html中插入了java代码和JSP标签之后形成的文件,文件名以.jsp结尾。其实JSP就是一个servlet。在servlet中编写html比较痛苦,而写JSP就像在写html,但它相比html而言,h ...
分类:
Web程序 时间:
2021-06-02 15:00:25
阅读次数:
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
安卓11有权限要求,以下方法管用 //跳转到相机 private void showCamera() { File fileDir = new File(Environment.getExternalStorageDirectory(),"Pictures"); if (!fileDir.exist ...
分类:
移动开发 时间:
2021-06-02 14:56:05
阅读次数:
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
背景 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
/*去掉input默认填充黄色背景*/ input:-webkit-autofill , textarea:-webkit-autofill, select:-webkit-autofill { -webkit-box-shadow: 0 0 0px 1000px transparent inset ...
分类:
其他好文 时间:
2021-06-02 14:21:55
阅读次数:
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
class Main { public static void main(String[] args) { b bb = new b(); } } class a{ // a(){ 注释我会报错 // System.out.println("a"); // } a(int a){ System.ou ...
分类:
编程语言 时间:
2021-06-02 13:54:11
阅读次数:
0