最近做了一个表单,需要提交好多信息和一些图片,后台的同学说要图片随着表单一起提交。那就不能用 ajax 单张上传了~
图片的话,最多可以选8张,选中了的也可以取消掉,因为并没有传到服务器,所以删除很easy。
然后我就想到了可以用 FormData 来做,因为之前好像用过,感觉很方便。
FormData
The FormData interface provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using t继续阅读 »
**对代码不满足,是任何真正有天才的程序员的根本特征。**
Value '0000-00-00' can not be represented as java.sql.Timestamp
在查询MySql数据库某表的timestamp列的时候,发现此异常,问题来源表述如下
1. 先创建一个测试表
sql
create table test.mytest(
id int PRIMARY KEY AUTO_INCREMENT ,
createtime timestamp not null default current_timestamp , --创建时间
updatetime timestamp not null , --更新时继续阅读 »
**对代码不满足,是任何真正有天才的程序员的根本特征。**
Value '0000-00-00' can not be represented as java.sql.Timestamp
在查询MySql数据库某表的timestamp列的时候,发现此异常,问题来源表述如下
1. 先创建一个测试表
sql
create table test.mytest(
id int PRIMARY KEY AUTO_INCREMENT ,
createtime timestamp not null default current_timestamp , --创建时间
updatetime timestamp not null , --更新时继续阅读 »
This blog was sent to openstack-discuss mailing list originaly.
As the official Victoria release is approaching and it has been a long time
silence for Trove in the upstream, I think it's good time for me as the Trove
PTL for the last 3 dev cycles to have a project update. The things that will be
described below have 继续阅读 »
(This article is adapted to the latest version of rvest package.)
A large proportion of R's power should be attributed to the enormous amount of extension packages. Many packages are published to CRAN.继续阅读 »
In data-driven statistical computing and data analysis, applying a chain of commands step by step is a common situation. However, it is neither straightforward nor flexible to write a group of deeply nested functions. It is because the function that comes later must be written first.继续阅读 »