码迷,mamicode.com
首页 >  
搜索关键字:static function    ( 99341个结果
插入排序
1.原理: 2.代码实现: 1 /* 2 * insert:实现插入排序 3 * ary[ARRAY] 需要排序的数组 4 * @return 5 * [ARRAY] 排序后的新数组 6 * by js0205 7 */ 8 function insert(ary) { 9 let handle = ...
分类:编程语言   时间:2021-06-28 19:14:34    阅读次数:0
快速排序
1. 原理: 递归:函数自己调用自己 1 function fn() { 2 fn(); 3 } 4 fn();//会导致栈溢出 1 function fn() { 2 setTimeout(fn,0); 3 } 4 fn();//不会导致栈溢出 2. 代码实现: 3.时间复杂度: 空间复杂度: ...
分类:编程语言   时间:2021-06-28 19:12:32    阅读次数:0
MySQL 自定义函数
1.MySQL自定义函数简介 在MySQL中使用自定义函数语法如下, 创建新函数: Create function function_name(参数列表) returns返回值类型 函数体内容 函数名:应该合法的标识符,并且不应该与已有的关键字冲突。一个函数应该属于某数据库,可以使用db_name. ...
分类:数据库   时间:2021-06-28 19:03:25    阅读次数:0
IfElsePractise
/* 指定考试成绩,判断成绩的等级。 90-100 优秀 80-89 好 70-79 良 60-69 及格 60以下 不及格 */ public class IfElsePractise{ public static void main(String[] args){ int score = 98; ...
分类:其他好文   时间:2021-06-28 19:00:36    阅读次数:0
SeguenceIf
/*单if语句的格式: if(关系表达式){ 语句体; } */ public class SeguenceIf{ public static void main(String [] args){ System.out.println("今天天气不错,正在压马路,突然发现一个好玩的地方:网吧"); ...
分类:其他好文   时间:2021-06-28 18:55:48    阅读次数:0
16、方法的重载
方法的重载 public class MethodDemo05 { public static void main(String[] args) { int add1 = add(1, 2); System.out.println(add1); System.out.println(" "); in ...
分类:其他好文   时间:2021-06-28 18:55:14    阅读次数:0
应用 |前端限制仅允许指定ip访问页面
封装方法 import axios from 'axios' const allowIP = ['119.133.5.19']; //允许访问 async function getIp() { const res=await axios.get('https://api.ipify.org/')// ...
分类:其他好文   时间:2021-06-28 18:55:02    阅读次数:0
17、可变参数
可变参数 实际上参数是数组 public class MethodDemo07 { public static void main(String[] args) { MethodDemo07 demo07 = new MethodDemo07(); demo07.test(1,2,3,4,5,6,7 ...
分类:其他好文   时间:2021-06-28 18:53:22    阅读次数:0
18、递归
递归 public class MethodDemo09 { //2! 2*1 //3! 3*2*1 //5! 5*4*3*2*1 public static void main(String[] args) { MethodDemo09 demo09 = new MethodDemo09(); i ...
分类:其他好文   时间:2021-06-28 18:52:21    阅读次数:0
electron 截图,两种方式:desktopCapturer.getSources 与 navigator.mediaDevices.getUserMedia
1 // In the renderer process. 2 3 import { desktopCapturer } from 'electron'; 4 import { screen } from '@electron/remote'; 5 6 export async function c ...
分类:其他好文   时间:2021-06-28 18:51:50    阅读次数:0
99341条   上一页 1 ... 9 10 11 12 13 ... 9935 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!