摘要: let allRes = [ {id: 1, title: "公司",expand:true, pid: 0}, {id: 60, title: "总经理",expand:true, pid: 1}, {id: 66, title: "业务1部",expand:true, pid: 1}, {id: 阅读全文
posted @ 2018-09-06 15:49 红叶1994 阅读(1037) 评论(0) 推荐(0) 编辑
摘要: 1. npm install -g create-react-app 2. create-react-app my-app 3. cd my-app 4. npm start 5. npm install antd-mobile --save 6. 入口页面 (html 或 模板) 相关设置:(参考 阅读全文
posted @ 2018-09-06 14:21 红叶1994 阅读(2172) 评论(0) 推荐(0) 编辑
摘要: 常用css: 1. text-align:center; 父元素让子元素(只有是行内元素才有效)或 文字水平居中; 2. line-height:10px; 如果只有一行文字。line-height和height一致,就可以让文字竖直方向垂直居中; 3. font-size:12px; 字体大小 4 阅读全文
posted @ 2018-09-01 10:46 红叶1994 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 1.第一种: 阅读全文
posted @ 2018-06-20 10:14 红叶1994 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 1.想写关于缓存的起因 最近在做de一个企业的官网,之前做手机端网页,p2p网站时都出现过修改页面,手机电脑刷新没有效果。 2.什么是浏览器缓存 浏览器缓存是把一个已经请求过的资源拷贝一份副本在储存在浏览器中。当同一个url再次发生请求的时候,缓存机制决定是使用副本还是向服务器发送请求;浏览器会缓存 阅读全文
posted @ 2018-06-13 10:22 红叶1994 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 1.微信端input框不能输入文字; 阅读全文
posted @ 2018-05-29 10:03 红叶1994 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 格式: var id_=1; var name_="quanzhilong"; window.location.href="www.baidu.com?id="+id_+"&name="+name_; 注释: 1.?表示url后的第一个参数;&表示第一个参数之后的参数; 2.字符串的拼接 3.常见的 阅读全文
posted @ 2018-03-16 10:33 红叶1994 阅读(1783) 评论(0) 推荐(0) 编辑
摘要: 引入文件: 阅读全文
posted @ 2018-01-29 11:05 红叶1994 阅读(3508) 评论(0) 推荐(0) 编辑
摘要: 四个文件:html,less.js,demo.less,demo.css html: 阅读全文
posted @ 2018-01-12 17:19 红叶1994 阅读(679) 评论(0) 推荐(0) 编辑
摘要: <div class="map"> <div class="map_div"> <form action="" method="post"> <h2> <div id="container" style="width: 100%;height: 568px;"></div> </h2> </form 阅读全文
posted @ 2018-01-11 17:33 红叶1994 阅读(214) 评论(0) 推荐(0) 编辑