/** * @desc 金额转换成大写 * @param {Number} n 需要转换成大写的金额 * @return {String} 转换后的大写中文金额 * @example convertIntegerToChineseCash('123') =>'壹百贰拾叁元整' */ function ...
分类:
其他好文 时间:
2020-07-26 01:55:47
阅读次数:
162
/** * @description: 对利率添加百分号 * @param {type} {1.2300000,4} * @return: 1.2300% */ function rateFormatter(param, num) { // 过滤掉% // 统一转化为字符串并去掉左右空格 为了避免异 ...
分类:
其他好文 时间:
2020-07-26 01:49:39
阅读次数:
154
1.安装编译工具及库文件 # yum -y install make zlib zlib-devel gcc-c++ libtool openssl openssl-devel pcre-devel gcc、gcc-c++ # 主要用来进行编译相关使用 openssl、openssl-devel # ...
分类:
其他好文 时间:
2020-07-25 23:57:46
阅读次数:
292
思路: 小程序登录获取code,将code传到后台; 后台用code得到微信用户id,即openid,将openid存储在用户表中,完成绑定 登录时,再次获取code并传给后台,得到openid,若用户表中存在,便可直接登录 以下仅是代码片段,更多代码在Github back_end/applica ...
分类:
微信 时间:
2020-07-25 09:59:11
阅读次数:
210
枚举类类型也是一个类,是一个Enum的一个子类,它的最终父类也是Object类,下面是枚举类行中一些特性。 1、不能被继承,也不能继承别的类 2、可以实现接口 3、构造器是私有的 例子: 定义: public enum Gander { MALE, FEMALE, UNKNOW("不确定"); // ...
分类:
编程语言 时间:
2020-07-25 09:31:01
阅读次数:
66
webworker计算md5实践及遇到的坑最近项目要实现大文件的分块上传及断点续传,其中文件的md5是判断文件或文件块是否已被上传的重要依据。1.阶段一编码初期,直接在公共方法中写了一个传入file返回md5的函数,供文件上传模块使用。关键代码如下:/***获取文件的md5*@param{*}file文件对象*/importSparkMD5from‘spark-md5‘exportasyncfun
分类:
Web程序 时间:
2020-07-24 23:48:21
阅读次数:
117
引子 最近练习时,觉得有些生疏,所以加强锻炼。 具体实现 快速排序(从小到大排序,升序) public class QuickSort{ public static void swap(int[] arr, int i, int j){ int temp = arr[i]; arr[i] = arr ...
分类:
编程语言 时间:
2020-07-24 22:11:29
阅读次数:
94
public class CIConfig { //唯一id public int id; //条件类型 public ConditionType conditionType; //条件参数 public String param; public CIConfig(int id, Condition ...
分类:
编程语言 时间:
2020-07-24 21:12:33
阅读次数:
73
/** * 业务层接口 * @date 2019/9/24 15:05 */ public interface AccountService { /** * 模拟保存账户 */ void saveAccount(); /** * 模拟更新账户 * * @param i */ void updateA ...
分类:
编程语言 时间:
2020-07-24 19:05:01
阅读次数:
73
1. 引入类 use PHPExcel; use PHPExcel_IOFactory; use PHPExcel_Reader_Excel5; use PHPExcel_Reader_Excel2007; use PHPExcel_RichText; 2导入 /** * PHPexcel导入 */ ...
分类:
Web程序 时间:
2020-07-24 16:51:05
阅读次数:
93