
react
niuge No.1
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
React中用Mongodb数据库
1.创建项目 npx create-react-app demo 2.暴露出配置项 npm run eject 3.运行完如果有错误,那么就运行 npm install (cnpm install没用) 4.安装依赖的插件 cnpm install express cnpm install mongoose cnpm install body-parser 5.修改start....原创 2019-01-29 15:47:26 · 3664 阅读 · 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 · 2698 阅读 · 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 · 1262 阅读 · 0 评论