public static String getValue(Element ele, HtmlElementSingle detail, boolean throwException) {
		String key = detail.getKey();
		if (VALUE_TEXT.equals(key)) {
			return ele.text().trim();
		} else if (VALUE_HTML.equals(key)) {
			return ele.html().trim();
		} else if (VALUE_ATTR.equals(key)) {
			return ele.attr(detail.getValue()).trim();
		} else if (throwException) {
			throw new IllegalArgumentException("unknown key:" + key);
		} else {
			return null;
		}
	}