ITeye博客

KAXU

KAXU · 共 112 篇文章

httpclient4.1 checkbox参数传递

Hi everybody, I am using Jakarta Commons HttpClient 's postmethod to "scrape" a web page. I know I can use postMethod.addParameter() to set the values of text or hidden input fields before calling executeMethod(). My question is, how do you check checkboxes through the API, when the checkboxes have…

2012-05-24 15:26 · httpclient4.1 · 评论(0)

httpclient4.1中文参数传递

最近在弄框架项目,要通过框架项目去读取和控制子项目。使用httpclient通过uri去访问子项目的业务功能。 废话不多说。 在非中文参数传递的时候都很正常。 但是后来遇到了使用get方式的带中文参数的url。让我纠结了2天多。字符码转来转去,最后还是失败了。 突然我改用post方式,就使用httpclient官方的demo。居然成功了。真是开心啊! .... DefaultHttpClient httpclient = new DefaultHttpClient(); HttpResponse response; HttpEntity entity; HttpPost httpost = …

2012-05-23 10:38 · httpclient4.1 · 评论(0)

blender学习日记

最近开始学习blender,希望自己可以坚持下去。 在此共享一下花了12个小时找到的2本好书: Tradigital.Blender Introducing.Character.Animation.with.Blender.2nd.Edition 都是高清版哦!!! 下面是初学者可以去学习的网站: http://www.blender.org/education-help/tutorials/ http://forum.ubuntu.com.cn/viewtopic.php?f=35&t=313604&sid=8dab529dd5e46725a47eaec9db78b71a

2011-08-10 18:17 · blender · 评论(0)

jquery 控制 clone( )

clone( ) 克隆匹配DOM,并选中当前克隆匹配元素集合 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> <script> $(document).ready(function(){ $("b").clone().prependTo("p"); }); </script> </h…

2009-02-03 17:10 · jQuery · 评论(0)

jquery 控制 remove( [expr] )

remove( [expr] ) 将匹配元素集合从DOM中完全删除 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> <script> $(document).ready(function(){ $("button").click(function () { $("p").remove…

2009-02-03 16:43 · jQuery · 评论(0)

jquery 控制 empty( )

empty( ) 删除匹配元素集合中所有子节点 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> <script> $(document).ready(function(){ $("button").click(function () { $("p").empty(); }); });…

2009-02-03 16:21 · jQuery · 评论(0)

jquery 控制 replaceAll( selector )

replaceAll( selector ) 将匹配元素集合替换选中的匹配元素集合中每一个元素。 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> <script> $(document).ready(function(){ $("<b>Paragraph. </b>").replac…

2009-02-03 16:14 · jQuery · 评论(0)

jquery 控制 replaceWith( content )

replaceWith( content ) 用‘content’的内容替换匹配元素集合 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> <script> $(document).ready(function(){ $("button").click(function () { $(…

2009-02-03 15:42 · jQuery · 评论(0)

jquery 控制 wrapInner( html )

wrapInner( html ) 将‘html’内容封装在匹配元素集合中每一个元素的内容或是文本上。 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> <script> $(document).ready(function(){ $("p").wrapInner("<b></b>")…

2009-02-03 15:28 · jQuery · 评论(0)

jquery 控制 wrapAll( html )

wrapAll( html ) 将‘html’的内容封装在匹配元素集合的整个集合上。 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> <script> $(document).ready(function(){ $("p").wrapAll("<div></div>"); }); <…

2009-02-03 15:12 · jQuery · 评论(0)

jquery 控制 wrap(elem)

wrap(elem) 将特殊的‘elem’元素封装在匹配元素集合的每一个元素上 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> <script> $(document).ready(function(){ $("p").wrap(document.createElement("div…

2009-02-03 15:03 · jQuery · 评论(0)

jquery 控制 wrap(html)

wrap(html) 将‘html’的内容封装在匹配元素集合的每一个元素上。 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> <script> $(document).ready(function(){ $("p").wrap("<div></div>"); }); </script…

2009-02-03 14:49 · jQuery · 评论(0)

jquery 控制 insertBefore(content)

insertBefore(content) 将匹配元素集合插入到匹配元素集合‘content’之前 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> <script> $(document).ready(function(){ $("p").insertBefore("#foo"); …

2009-01-13 17:25 · jQuery · 评论(2)

jquery 控制 insertAfter(content)

insertAfter(content) 将匹配元素集合插入至匹配元素集合‘content’之后。 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> <script> $(document).ready(function(){ $("p").insertAfter("#foo"); /…

2009-01-13 17:21 · jQuery · 评论(0)

jquery 控制 before(content)

before(content) 在匹配元素集合中每一个元素之前加上新内容‘content’ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> <script> $(document).ready(function(){ $("p").before("<b>Hello</b>"); })…

2009-01-13 17:02 · jQuery · 评论(0)