码迷,mamicode.com
首页 >  
搜索关键字:switch case    ( 15339个结果)
【ECMAScript5】语句
一、if语句 关键字:if、else if、else 二、循环语句 1. do-while 语句:至少会执行循环主体一次。 2. while 语句 3. for语句 4. for-in 语句 是严格的迭代语句,用于枚举对象的属性。 三、break 和 continue 语句 break 语句可以立即 ...
分类:其他好文   时间:2020-01-13 15:52:47    阅读次数:70
mysql常用函数
1、数学函数 ABS(x) 返回 x 的绝对值 BIN(x) 返回 x 的二进制(OCT 返回八进制,HEX 返回十六进制) CEILING(x) 返回大于 x 的最小整数值 EXP(x) 返回值 e(自然对数的底)的 x 次方 FLOOR(x) 返回小于 x 的最大整数值 GREATEST(x1, ...
分类:数据库   时间:2020-01-13 10:52:32    阅读次数:92
一些比较实用的demo
1.获取时间的11位毫秒数值 1.1 获取当前时间 Date.now()// new Date()是当前时间的日期对象 1.2 getTime() new Date().getTime(),可以获取任意时间的数值 1.3 valueOf() new Date().valueOf(),可以是任意时间 ...
分类:其他好文   时间:2020-01-13 10:37:03    阅读次数:89
C#_winfrom与API之HttpClient
最近需要写一些winfrom与端口交互的代码,需要的自取哦! using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; using Syst ...
分类:Windows程序   时间:2020-01-12 22:25:50    阅读次数:114
远古计算机
就放个代码 Case 1: Case 2: Case 3: Case 4: Case 5: ...
分类:其他好文   时间:2020-01-12 21:36:58    阅读次数:73
显示指定行的内容
显示指定行的内容 出处:http://www.cn-dos.net/forum/viewthread.php?tid=21647 This page shows how to read specific lines from a text file. There are many ways to h ...
分类:其他好文   时间:2020-01-12 20:04:09    阅读次数:86
java基础---5. 选择、循环结构
1 选择结构 1.1 if语句 格式1:单if语句 格式2:标准if...else语句 格式3 1.2 switch语句 格式 switch语句的注意事项: (1)多个case后面的数值不可以重复 (2)switch后面小括号当中只能是以下数据类型: 基本数据类型:byte/short/char/i ...
分类:编程语言   时间:2020-01-12 19:47:12    阅读次数:78
[LC] 1099. Two Sum Less Than K
Given an array A of integers and integer K, return the maximum S such that there exists i < j with A[i] + A[j] = S and S < K. If no i, j exist satisfy ...
分类:其他好文   时间:2020-01-12 11:53:41    阅读次数:79
switch语句
switch语句 在java中除了if可以做流程分支. switch也可以完成相应的操作. switch: 也是实现分支判断,侧重于单值的判断 语法: switch(变量值) { case 值1: 语句体2;break; case 值2: 语句体2;break; …. case 值n: 语句体n;b ...
分类:其他好文   时间:2020-01-12 11:39:31    阅读次数:70
JS 循环
介绍循环之前,首先要说一下同样很重要的if-else结构,switch-case结构 ①if-else结构 if(判断条件) { 条件为true时执行 } else{ 条件为false时执行 } ②if-else-if结构(阶梯if) if(条件一){ 条件一成立 } else if( 条件二){ ...
分类:Web程序   时间:2020-01-12 10:08:39    阅读次数:121
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!