应用场景: A与B之间存在一对多关系.CBV实现方案: CreateView/UpdateView + inlineformset + jquery具体: view方面:重写post/get方法, 或者 get_context_data/form_valid方法。 template方面:...
分类:
其他好文 时间:
2014-08-27 23:20:18
阅读次数:
399
public?ActionResult?Edit(long?id?=?0)
????????{
????????????Post?post?=?db.Post.Find(id);
????????????if?(post?==?null)
????????????{
????...
分类:
Web程序 时间:
2014-08-27 22:07:58
阅读次数:
317
1. 文件上传 php对post提交&最大文件上传限制&脚本执行时间限制2.nginx 限制,或者站点配置文件限制3. 反向代理:只负责数据和文件数据的转发对文件上传大小也是有限制 报错信息是: 413 Request Entity Too Large
分类:
其他好文 时间:
2014-08-27 20:28:48
阅读次数:
253
So for today’s blog post, we will concentrate on 4 different reports:Top Queries by Average CPU TimeTop Queries by Total CPU TimeTop Queries by Averag...
分类:
数据库 时间:
2014-08-27 20:21:28
阅读次数:
235
快速记忆(POST) 1.? ?? ? 要想连接网络,肯定需要一个客户端对象,所以首先创建一个客户端对象HttpClient 2.? ?? ? 拥有客户端对象之后肯定需要对互联网进行访问,首先要对互联网进行请求,所以要创建一...
分类:
移动开发 时间:
2014-08-27 19:04:59
阅读次数:
300
前端:<html>
<body>
<formaction="/static/uploadList/upload.php"method="post"
enctype="multipart/form-data">
<labelfor="file">licenseImage:</label>
<inputtype="file"name="licenseImage[]"id="file1"/>
<inputtype="file"na..
分类:
其他好文 时间:
2014-08-27 19:00:18
阅读次数:
222
一、Login登陆验证步骤:
1、赋值,用$_POST将id和password传递给loginProcess.php登陆验证页面。
2、建立数据库连接 $conn=mysql_connect($host,$username,$password);
3、选择数据库 mysql_select_db(empmanage);
4、定义sql语句 $sql=”select passwo...
分类:
Web程序 时间:
2014-08-27 18:41:38
阅读次数:
197
1.MAC安装Ruby环境 1> 安装RVM 控制台命令:$curl –L https://get.rvm.io | bash –s stable$source ~/.rvm/scripts/rvm$rvm –v (查看版本,检查是否安装正确)2> 用rvm安装ruby环境$rvm install ...
分类:
其他好文 时间:
2014-08-27 18:23:48
阅读次数:
217
文章出自:http://www.oschina.net/code/snippet_1242747_23565#region DataTable 转换为Json字符串实例方法/// /// GetClassTypeJosn 的摘要说明/// public class GetClassTypeJosn ...
分类:
Web程序 时间:
2014-08-27 18:18:58
阅读次数:
177
CURLOPT_HEADER:设为1,则在返回的内容里包含http header;CURLOPT_FOLLOWLOCATION:设为0,则不会自动301,302跳转;*CURLOPT_INFILESIZE: 当你上传一个文件到远程站点,这个选项告诉PHP你上传文件的大小。*CURLOPT_VERBO...
分类:
其他好文 时间:
2014-08-27 18:09:48
阅读次数:
154