简介:获取页面参数 原生js: //通过正则匹配获取当前页面的url中的参数 function getUrlParam(name){ var reg = new RegExp("(^|&)"+name+"=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); var strValue = ""; if (r!=null){ strVa
//这个有个弊端: 分组后分批导入, 是阻塞的,我没有导入完成,别人就不能导入, 这里可以优化成异步,线程池 public static void main(String[] args) { Random random = new Random(); ArrayList phoneList = new ArrayList<>(); for (int i = 0; i < 30; i++) { phoneList.add(i); } for (int i = 0; i < phone
目标 想要获取一个整形数字的二进制表示 bin 内置函数 看一下官方的解释 Convert an integer number to a binary string prefixed with "0b". The result is a valid Python expression. If x is not a Python int object, it has to define an index() method that returns an integer. Some exa
已知 map.get("id")为数字,如:123问题 id.equals(123) 结果为false而使用 int id = (Integer)map.get("id");则会报异常(类型转换异常) java.lang.ClassCastException: java.math.BigDecimal cannot be cast to java.lang.Integer解决 Object id1 = map.get("id"); int id