摘要: Http Post 的方式去访问 WebService 代码如下: public class HttpUtil { public static String http(String url, Map params) { URL u = null; HttpURLConnection con = ... 阅读全文
posted @ 2013-03-09 18:16 Shaman 阅读(502) 评论(0) 推荐(0) 编辑
摘要: javascript不能支持函数的重载,如下:<script language="JavaScript"> function f(length) { alert("高为:"+length); } function f(length,width) { alert("高为:"+length+",宽为:"+width); } </srcipt>上面那段代码其实是行不通的,因为函数定义时的参数个数和函数调用时的参数个数没有任何关系。 在函数中可以用f.arguments[0]和f.arguments 阅读全文
posted @ 2013-03-09 16:58 Shaman 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 公司里访问外网是要配置代理的 这时候用Maven的话 也需要配置一下Maven的代理才能download下来 所需要的组件。 配置如下 proxies> proxy | Specification for one proxy, to be used in connecting to the n... 阅读全文
posted @ 2013-03-09 16:54 Shaman 阅读(213) 评论(0) 推荐(0) 编辑