分新旧差异,旧的参数是iDisplayStart,第三页就是iDisplayStart:20。
新版参数是displayStart。在绘制DataTables前,初始化这个参数就可以实现重绘的时候,表格页数不变。参考:http://datatab[……]

阅读全文

adb shell pm list packages 包名

上述指令即可检查app是否已经安装。
安装的话,就会返回包名,否则返回空。

整理自:http://stackoverflow.com/questions/16454476/where-does-adb-pu[……]

阅读全文

adb shell ps 包名

注意,包名为15个字符,如果超出,那就从尾部开始数15个字符放上去即可。

经验来自:http://stackoverflow.com/questions/16691487/how-to-detect-running-app-usin[……]

阅读全文

之前整理的数组函数是有这个函数的:krsort()。
定义和用法:krsort() 函数将数组按照键名逆向排序,为数组值保留原来的键。可选的第二个参数包含附加的排序标志。若成功,则返回 TRUE,否则返回 FALSE。krsort(array[……]

阅读全文