![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
编程
Pipinggo
这个作者很懒,什么都没留下…
展开
-
交换2个变量值不用中间变量
不用中间变量交换2个变量的值,这个题各个语言都很常见,今天看到es6实现好简单c&&java等等实现:方法1:a=a+b;b=a-b;a=a-b;方法2:a=a^b;b=a^b;a=a^bes6实现:解构赋值[a,b] = [b,a]...原创 2018-05-11 13:49:31 · 185 阅读 · 0 评论 -
区分页面是rn还是android原生
1.打开sdk tools里面的monitor.bat查看页面布局2.查看元素的resourse-id,可以看到rn的页面id是空的,android控件则是有值的3.例子:淘宝app首页(rn)和淘宝个人资料页面(android原生)...原创 2018-06-25 15:02:39 · 3114 阅读 · 0 评论 -
解决bug:java.lang.IllegalStateException. Make sure the Cursor is initialized correctly before accessin
There is a 1MB limit per operation. (I am unsure if this is per row, or per column in the case of SQLite queries). The limit is due to the SQLite API interacting with sqlite out-of-process over the Bi...原创 2018-08-09 14:06:24 · 318 阅读 · 0 评论 -
crc16校验c代码转java
crc16校验:原c代码:typedef unsigned char uint8_t;typedef unsigned short uint16_t;typedef unsigned int uint32_t;uint16_t CRC16Caculate(uint8_t *AP, uint16_t LEN, uint16_t CRC16_Type){ uint16_t CRC16...原创 2018-08-14 10:56:00 · 543 阅读 · 0 评论