本帖最后由 tz520 于 2022-10-22 11:58 编辑
数据库格式
[Asm] 纯文本查看 复制代码 {"mode":"0","category_id":"6049dcca78b4c30001171660","category_name":"写真","tags":"","name":"","images":["https://lk.dhso.top/admin/fXoFj5sk.jpg","https://lk.dhso.top/admin/Vf7C8VTI.jpg","https://lk.dhso.top/admin/gJPDz0VJ.jpg","https://lk.dhso.top/admin/70W9Wr5Q.jpg","https://lk.dhso.top/admin/tnfwp3dz.jpg","https://lk.dhso.top/admin/mumJBcYG.jpg"],"image":"","coll":"","zan":"10","vie":"10","statu":"0","user_id":"61c1f22481337a0001e935f5","time":"1666231160000"}
html代码生成的格式
[Asm] 纯文本查看 复制代码 {"mode":"0","category_id":"6049dcca78b4c30001171660","category_name":"写真","tags":"标签","name":"标题","images":"["https://lk.dhso.top/admin/fXoFj5sk.jpg","https://lk.dhso.top/admin/Vf7C8VTI.jpg","https://lk.dhso.top/admin/gJPDz0VJ.jpg","https://lk.dhso.top/admin/70W9Wr5Q.jpg","https://lk.dhso.top/admin/tnfwp3dz.jpg","https://lk.dhso.top/admin/mumJBcYG.jpg"]","image":"https://lk.dhso.top/admin/70W9Wr5Q.jpg","coll":"","zan":"10","vie":"10","statu":"0","user_id":"61c1f22481337a0001e935f5","time":"1666231160000"}
两者的区别在于
数据库中"images":["图片",".图片"],格式
html中提交出来是"images":"["图片","图片"]",格式
差别多了外层"",主要就是这一个数组是[]
需要解决问题
1.images问题,最好能把[]固定在里面,我只要填写图片地址就行,因为我的图片批量生成格式就是"图片","图片"
2.时间撮那块能不能提交用日期标识,生成出来的用时间撮表示
3.最后生成的json值能不能用代码块框起来加个复制按钮,类似csdn网站那样
4.请简单把代码自适应下,现在好像有些错位
附上代码链接
下载:https://takitooru.lanzouf.com/iHLWh0ecelgd 密码:3tso
|