前端学习
dcry
这个作者很懒,什么都没留下…
展开
-
React 接入 Ueditor + xiumi
在react(antd-pro)中接入秀米打包ueditor在react将打包后的ueditor文件夹作为静态资源放入项目public目录下。使用react-ueditor-wrap组件在页面使用ueditor。这里有一个坑,若使用onChange修改组件value值,编辑器光标位置会被重置,在表单中使用时要引入另一个值记录编辑器内容。引入秀米,秀米官方给了在ueditor中使用的文...原创 2020-01-19 12:53:57 · 1609 阅读 · 3 评论 -
Mongodb数据导出工具mongoexport和导入工具mongoimport介绍
一、导出工具mongoexportMongodb中的mongoexport工具可以把一个collection导出成JSON格式或CSV格式的文件。可以通过参数指定导出的数据项,也可以根据指定的条件导出数据。mongoexport具体用法如下所示Shell代码 参数说明: [root@localhost mongodb]# ./bin/mongoexport --help Exp...转载 2018-03-10 16:47:24 · 248 阅读 · 0 评论 -
ajax请求url 绝对路径与相对路径
1. 绝对路径url开头为一个斜杠"/",这个斜杠说明这个请求从根目录去访问,这个是绝对路径。例子:$.ajax({ url:'/index/list', type:'json', success:function(){ console.log('OK'); }});2. 相对路径相对路径就是相对于html...原创 2018-03-09 21:27:16 · 29659 阅读 · 0 评论 -
Canvas实现画图工具
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>task1</title> <link rel="Shortcut Icon" href="index.ico"> <link rel="stylesheet" href="buttons.css" type="text/css"原创 2017-12-19 19:07:13 · 3515 阅读 · 0 评论