- 注册时间
- 2016-11-14
- 最后登录
- 1970-1-1
- 阅读权限
- 10
- 积分
- 11
- 精华
- 0
- 帖子
- 3
|
dforce 发表于 2016-11-14 12:49
这就是我们前端处理时间的格式
你后台可以使用我们提供的json工具转换
PHP后台通过request方法获取的数据 在使用php_json_decode解码之前 是这样的:
[{\"name\":\"New Row\",\"_id\":1,\"_uid\":1,\"_state\":\"added\",\"loginname\":\"bobo\",\"age\":23,\"birthday\":\"2016-11-14T00:00:00\",\"remarks\":\"test\",\"gender\":\"1\",\"country\":\"cn\"}]
不知你说的json工具是哪个
另外补全以后的sql语句中 生日用的是双引号 不知为何:
insert into t_employee (id, loginname, name, age, married, gender, birthday, country, city, dept_id, position, createtime, salary, educational, school, email, remarks)values('9B6B1EF8-F572-A1DE-453C-E3CBC259096B', 'bobo', 'New Row', '23', '0', '1', "2016-11-14T00:00:00", 'cn', '', '', '','2016-11-14 14:03:01', '', '', '','', 'test') |
|