自己安装php,不用mac安装,这样就有php开发环境了。 安装很简单,直接运行一个命令, 需要几分钟,请慢慢等待。curl -s http://php-osx.liip.ch/install.sh | bash -s 5.5 (注5.5是php版本可以是5.6等等)新安装的php目录是/us...
分类:
Web程序 时间:
2014-07-22 22:56:34
阅读次数:
266
//构建post方式提交 var form = document.createElement("form"); form.action = "conditionSearch.action"; form.method = "POST"; form.sty...
分类:
Web程序 时间:
2014-07-16 23:59:51
阅读次数:
478
Python的字典和JSON在表现形式上非常相似#这是Python中的一个字典 dic = { 'str': 'this is a string', 'list': [1, 2, 'a', 'b'], 'sub_dic': { 'sub_str': 'this is sub str', 'sub_l...
分类:
编程语言 时间:
2014-07-16 18:09:52
阅读次数:
301
前段时间项目中用到了REST风格来开发程序,但是当用POST、PUT模式提交数据时,发现服务器端接受不到提交的数据(服务器端参数绑定没有加任何注解),查看了提交方式为application/json, 而且服务器端通过request.getReader() 打出的数据里确实存在浏览器提交的数据。为了...
分类:
移动开发 时间:
2014-07-16 17:46:28
阅读次数:
300
from:http://blog.makto.me/post/2012-11-01/pypi-mirrorfrom:http://www.pypi-mirrors.org/ from:http://pypi.hustunique.com/from:http://pypi.douban.com/作为 ...
分类:
编程语言 时间:
2014-07-16 17:40:12
阅读次数:
1003
host/customer/delete/1host/customer/get/keyword-祖国host/customer/get/1.xmlhost/customer/get/1.jsonhost/order/posthost/order/post/get/500.jsonrest:repre...
post方式的的请求过程:
// 设置是否向httpUrlConnection输出,因为这个是post请求,参数要放在
// http正文内,因此需要设为true, 默认情况下是false;
httpUrlConnection.setDoOutput(true);
// 设置是否从httpUrlConnection读入,默认情况下是true;
httpUrlConnection.se...
分类:
其他好文 时间:
2014-07-16 16:14:42
阅读次数:
3111
本文转自:http://jun1986.iteye.com/blog/1399242 感谢他的分享$.post、$.get是一些简单的方法,如果要处理复杂的逻辑,还是需要用到jQuery.ajax()一、$.ajax的一般格式$.ajax({ type: 'POST', url:url, data:...
分类:
Web程序 时间:
2014-07-16 15:04:48
阅读次数:
249
//定义数组 var _arrays = []; for (var i = 0; i < 10; i++) { _shangpins.push(i); }//post $.post(href, {list: _arrays} );//get post dat...
分类:
Web程序 时间:
2014-07-16 12:05:00
阅读次数:
243
iOS中用系统提供的API能实现能实现文件的上传与下载,分别有两种方式。NSURLConnection与NSURLSession。
其中NSURLConnection是使用很久的的一种方式,NSURLSession是新出来的一种方式。
一、 POST方式上传
POST方式提交信息默认使用的是 :
*Content-Type:
application/x-www-form-u...
分类:
移动开发 时间:
2014-07-16 08:21:07
阅读次数:
414