问题描述
For.ex我已经通过了日期:2020-10-08 12:15:10
const [post,setPost] = useState([]);
var id = match.params.id;
useEffect(() => {
axios.get('http://localhost:3001/post/' + id).then(res => {
setPost(res.data);
}).catch(err => {
console.log(err);
})
},[]);
return (
<div >
<div className="blogcontainer">
{post.length < 1 ? <div /> :
<img src={post.images.destination + post.images.filename} alt={post.name} />
<div className="articleWrapper">
<h2>{post.name}</h2>
{parse(String(post.postcontent))}
</div>
}
</div>
</div>
)```
使用MySQL查询:
Table
-------
Id Startdate EndDate
1 2020-10-10 12:15:10 2020-10-15 12:15:10
2 2020-08-12 12:15:10 2020-08-15 12:15:10
它正在工作,但是我在MongoDB中需要它,所以怎么做。
请帮助我。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)