/** * 计算barcode最后一位 * @param code 12位的barcode * @return */ public static String padBarcode(String code){ if( null == code || code.length() != 12 ){ th ...
分类:
其他好文 时间:
2021-06-02 18:53:48
阅读次数:
0
每个函数在调用时,都会创建一个执行环境。这个执行环境有它的变量对象以及作用域链。通过作用域链,可以访问上层的作用域的内容。 闭包的概念: 闭包是能够访问另一个函数作用域中变量的函数(这个“另外一个函数”,通常指的是包含闭包函数的外部函数) function outerFunction () { va ...
分类:
编程语言 时间:
2021-06-02 18:52:21
阅读次数:
0
广度优先遍历多叉树 层序遍历多叉树,判断是否有等于给定值target的结点 给定多叉树: const root = { value: 4, children: [{ value: 2, children: [{ value: 1, children: [] }, { value: 3, childr ...
分类:
其他好文 时间:
2021-06-02 18:13:29
阅读次数:
0
Overthewire level 27 to level 28 function checkCredentials($link,$usr,$pass){ $user=mysql_real_escape_string($usr); $password=mysql_real_escape_string ...
分类:
其他好文 时间:
2021-06-02 18:02:08
阅读次数:
0
1、 runAsync 和 supplyAsync方法 CompletableFuture 提供了四个静态方法来创建一个异步操作。 public static CompletableFuture<Void> runAsync(Runnable runnable) public static Comp ...
分类:
其他好文 时间:
2021-06-02 17:33:34
阅读次数:
0
set 判重 利用节点的内存地址来进行判重 var hasCycle = function (head) { let set = new Set(); let p = head; while (p) { //存在重复 if (set.has(p)) { return true; } set.add( ...
分类:
Web程序 时间:
2021-06-02 17:29:00
阅读次数:
0
1,准备工作: 安装MySQL2 驱动(库名称为mysql2 ): npm install mysql2 2,编写js代码: 2-1,数据库 查询 数据js代码 const mysql = require('mysql2') const connection = mysql.createConnec ...
分类:
数据库 时间:
2021-06-02 17:00:22
阅读次数:
0
ArrayList实现 code import java.util.ArrayList; import java.util.Collections; public class PokerDemo { public static void main(String[] args) { // 使用Arra ...
分类:
编程语言 时间:
2021-06-02 16:52:04
阅读次数:
0
一、input为文本时 $("[id='vTC_EnumTinModel.TinModel']").textbox({ onChange: function () { inputChange(); } }); 二、input 为数值时 $("[id='SM_SteelMeshTension.Bott ...
分类:
其他好文 时间:
2021-06-02 16:50:17
阅读次数:
0
public class HelloWorld { public static void main(String[] args) { //大小写十分敏感 String Man="qinjiang"; String man="qinjiang"; String Ahello="qinjiang"; S ...
分类:
其他好文 时间:
2021-06-02 16:40:41
阅读次数:
0