没得事就爬一下我喜欢的海贼王上的图片
需要在d盘下建立一个imgcache文件夹
# -*- coding: utf-8 -*-
import urllib
import urllib2
import json
from bs4 import BeautifulSoup
import threadpool
import thread
class htmlpaser:
de...
分类:
编程语言 时间:
2014-06-29 07:15:05
阅读次数:
304
使用spring整合hibernate时,需要用到数据源,数据源使用apache的dbcp,使用dbcp时需要依赖pool的jar包,选择dbcp和pool时需要注意。
DBCP 2 compiles and runs under Java 7 only (JDBC 4.1)DBCP 1.4 compiles and runs under Java 6 only (JDBC 4)DBCP...
分类:
数据库 时间:
2014-06-20 13:19:33
阅读次数:
219
LigerUi-js中ajax前台调用后台Json格式转换!(已解决)
success: function (data, status)
{
var aaa = JSON2.stringify(data);
alert(aaa );
}...
分类:
Web程序 时间:
2014-06-20 12:17:23
阅读次数:
972
使用springMVC提供的CommonsMultipartFile类进行读取文件需要用到上传文件的两个jar包 commons-logging.jar、commons-io-xxx.jar1、在spring配置文件中配置文件上传解析器...
分类:
编程语言 时间:
2014-06-20 11:46:57
阅读次数:
246
众所了解Android上的界面展示都是通过Activity实现的,但是Activity也有它的局限性,同样的界面在手机上显示可能很好看,在平板上就未必了。为了让界面可以在平板上更好地展示,Android在3.0版本引入了Fragment(碎片)功能,它非常类似于Activity,可以像Activity一样包含布局。Fragment通常是嵌套在Activity中使用的。首先需要注意,Fragment是在3.0版本引入的,如果你使用的是3.0之前的系统,需要先导入android-support-v4的jar包才...
分类:
移动开发 时间:
2014-06-20 10:03:25
阅读次数:
260
先上用来生成Tree的JSON数据 [ { "id": "Root", "name":
"资源目录" }, { "id": "PF", "name": "批发价格", "parent": "Root" }, { "id": "PF93",
"name": "93#", "parent": "
分类:
其他好文 时间:
2014-06-13 13:49:33
阅读次数:
442
3.0以前的提供的ActionBar,以它简洁的界面,统一的风格控制,及丰富的功能,为开发者所喜爱。大量的应用使用了ActionBar,然而市面上扔存在大量的Android 2.2 , 2.3 的设备,是否意味着应用必须要放弃低版本的市场呢!No,Google 新提供了一个V7 jar 包,支持低版本上使用ActionBar。...
分类:
移动开发 时间:
2014-06-07 16:15:17
阅读次数:
227
一个是如何创建JSON:var obj = {};
obj['name'] = value;
obj['anotherName'] = anotherValue;如果要创建多级的JSON,则:ips[ipId] = {};
ips[ipId]['name'] = value;
ips[ipId]['anotherName'] = anotherValue;注意要用bracket[]而不能用点. 来...
分类:
编程语言 时间:
2014-06-07 14:00:06
阅读次数:
210
json.Append(String.Format("{\"total\":{0},\"row\":{1}}",
lineCount, strJSON));直接会报错字符串中包含{或者},则需要用{{ 来代替字符 {,用}} 代替
}如:json.Append(String.Format("{{\"...
分类:
Web程序 时间:
2014-06-07 08:48:42
阅读次数:
921