![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
react
niuge No.1
这个作者很懒,什么都没留下…
展开
-
React中用Mongodb数据库
1.创建项目npx create-react-app demo2.暴露出配置项npm run eject3.运行完如果有错误,那么就运行npm install (cnpm install没用)4.安装依赖的插件cnpm install expresscnpm install mongoosecnpm install body-parser5.修改start....原创 2019-01-29 15:47:26 · 3544 阅读 · 1 评论 -
web前端向java后端传递model的几种方法
1、通过fastjson传值前端代码:$.post("./test",{modelStr:JSON.stringify(data),collection:collection}, function (ret) { //do something. });后端代码:@RequestMapping(value="...原创 2019-07-01 14:58:02 · 2639 阅读 · 0 评论 -
js里将json显示在div里并高亮关键字
_syntaxHeightlight(json) { if (typeof json !== "string") { json = JSON.stringify(json, undefined, 2) } json = json.replace(/&/g, '&').replace(/</g, ...转载 2019-06-24 20:00:33 · 1171 阅读 · 0 评论