摘要:
System.out.println(5 & (~1)); 比如,通过二进制位运算实现权限设置 newAuth.getAuthority() 为表示权限的数字,attEnum.getIndex() 指的是某一个权限的位数,代码如下 if (flag) { Long tmp = newAuth.get 阅读全文
摘要:
<dependency> <groupId>com.carrotsearch</groupId> <artifactId>java-sizeof</artifactId> <version>0.0.5</version> </dependency> import com.carrotsearch.s 阅读全文
摘要:
axios 方案,具体原理在网上搜索吧。我想要说的是,这种方法是有缺陷的。虽然写header是没问题的,但是返回值是一堆的 html。此时如果使用 document.write 就不能加载js,如果使用下面的方法,相当于打开了一个新窗口,可以加载js,但是url 地址没了 var form1 = d 阅读全文