摘要: 如何抓取Js动态生成html的页面? 阅读全文
posted @ 2015-10-27 23:56 陈泽泽 阅读(1331) 评论(0) 推荐(0) 编辑
摘要: expressname = $this->expressname(); } /* * 采集网页内容的方法 */ private function getcontent($url){ if(function_exists("file_get_co... 阅读全文
posted @ 2015-10-27 23:13 陈泽泽 阅读(944) 评论(0) 推荐(0) 编辑
摘要: foreach($arr as $key=>$vol){}这是语法。$arr ----->代表数组,就是你要循环的数组$key ----->代表键,每次循环的键$vol ------>代表值,每次循环的值 阅读全文
posted @ 2015-10-27 20:12 陈泽泽 阅读(171) 评论(0) 推荐(0) 编辑
摘要: $url ="https://********";$contents = file_get_contents($url); //抓取页面数据//如果出现中文乱码使用下面代码 //$getcontent = iconv("gb2312", "utf-8",$contents);preg_match('... 阅读全文
posted @ 2015-10-27 18:33 陈泽泽 阅读(4440) 评论(0) 推荐(0) 编辑
摘要: public static boolean isNetworkAvailable(Context context) { ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Cont... 阅读全文
posted @ 2015-10-27 16:42 陈泽泽 阅读(216) 评论(0) 推荐(0) 编辑
摘要: // 获取实例对象 sp = this.getSharedPreferences("userInfo", Context.MODE_WORLD_READABLE); rem_pw = (CheckBox) findViewById(R.id.cb_mima); ... 阅读全文
posted @ 2015-10-27 16:05 陈泽泽 阅读(718) 评论(0) 推荐(0) 编辑