码迷,mamicode.com
首页 >  
搜索关键字:static function    ( 99341个结果
js封装一个集合
// 基于对象封装一个集合 function Set() { // 属性 this.items = {}; // 方法 // add 往集合中添加元素 Set.prototype.add = function (value) { // 先判断是否有这个元素 if (this.has(value)) ...
分类:Web程序   时间:2021-06-02 20:02:42    阅读次数:0
[AWS DA] API Gateway: Mapping Templates
What does it means? For example, if we have setup a API Gateway, REST API, GET method point to a Lambda function with no proxy intergration which retu ...
分类:移动开发   时间:2021-06-02 19:55:41    阅读次数:0
数字转汉字
阿拉伯数字转汉字数字 public static String int2chineseNum(int src) { final String num[] = {"零", "一", "二", "三", "四", "五", "六", "七", "八", "九"}; final String unit[] ...
分类:其他好文   时间:2021-06-02 19:53:42    阅读次数:0
SpringBoot项目取消静态文件访问限制
spring: #thymeleaf thymeleaf: cache: false prefix: classpath:/templates/ check-template-location: true suffix: .html encoding: utf-8 mode: HTML #这个是关键 ...
分类:编程语言   时间:2021-06-02 19:47:35    阅读次数:0
Java mybatis日期比较查询
public static SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd");public static SimpleDateFormat format1 = new SimpleDateFormat( "yyyyMMdd HH:m ...
分类:编程语言   时间:2021-06-02 19:42:04    阅读次数:0
4的幂 算法
package whale.leetcode.simple; /** * @Author: WhaleFall541 * @Date: 2021/5/31 23:22 */ public class PowerOfFour { public static void main(String[] arg ...
分类:编程语言   时间:2021-06-02 19:35:24    阅读次数:0
最长公共前缀 js 实现代码
编写一个函数来查找字符串数组中的最长公共前缀: 输入 : ["abca","abc","abca","abc","abcc"] 返回: "abc" /** * * @param strs string字符串一维数组 * @return string字符串 */ function longestCom ...
分类:Web程序   时间:2021-06-02 19:25:54    阅读次数:0
JS实现前台表格排序功能
JS实现前台表格排序功能 虽然数据量不大的情况下,前台排序速度比较快,但一般情况下,我们的项目只使用后台排序,原因有二: 一是代码简单;二是前台JS排序对于有分页的情况无法处理。 前段时间,有个功能需要用到前台排序,没办法,写一个吧,下面记录一下实现的过程,其实很简单,如下: var _sortTy ...
分类:编程语言   时间:2021-06-02 19:17:21    阅读次数:0
[342]4的幂
/** @param n @return */ // ∵4=2^2,4的幂一定满足是2的幂 // ①4的幂中一定存在偶数个0,因而1一定在奇数位。 // 使用0xa // ②4的幂%3==1 var isPowerOfFour = function(n) { return n>0&&(n&(n-1) ...
分类:其他好文   时间:2021-06-02 19:09:52    阅读次数:0
InetAddress类
package kuangs.lesson1;import java.net.InetAddress;import java.net.UnknownHostException;//测试IPpublic class TestInetAddress { public static void main(S ...
分类:Web程序   时间:2021-06-02 19:04:04    阅读次数:0
99341条   上一页 1 ... 30 31 32 33 34 ... 9935 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!