摘要: 1.listen EADDRINUSE :::8080报错 端口被占用 在config/index.js中更改port 2.样式选择stylus package设置依赖:版本搜索最新的 3.保持盒子大小不变(阻止padding的影响) box-sizing:border-box 阅读全文
posted @ 2017-06-16 18:08 九门提督琪琪 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 1.遇到stylus不能find问题 硬是要重新下载一遍,package没有用,泪奔~~o(>_<)o ~~ npm install stylus-loader css-loader style-loader --save-dev 2.查看隐藏的node_mudules 3.stylus语法是严谨的 阅读全文
posted @ 2017-06-08 15:34 九门提督琪琪 阅读(339) 评论(0) 推荐(0) 编辑
摘要: 步骤一:搜索百度地图api 步骤二:注册秘钥 步骤三:demo拷贝,用地图生成器生成坐标 再根据api实现其他功能 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>map</title> <meta http 阅读全文
posted @ 2017-06-05 17:06 九门提督琪琪 阅读(202) 评论(0) 推荐(0) 编辑
摘要: pushState和replaceState 参考:http://www.zhangxinxu.com/wordpress/2013/06/html5-history-api-pushstate-replacestate-ajax/ 1.history.pushState({},"","xxx.ht 阅读全文
posted @ 2017-06-05 14:39 九门提督琪琪 阅读(153) 评论(0) 推荐(0) 编辑
摘要: html模板: <div class="container"> <img src="img/1.png" alt="" style="width: 100px;height: 100px;"> </div> 1.水平垂直居中 A.转化为表格单元格的形式 .container{ display: ta 阅读全文
posted @ 2017-06-02 10:28 九门提督琪琪 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 1. 阅读全文
posted @ 2017-06-01 13:48 九门提督琪琪 阅读(220) 评论(0) 推荐(0) 编辑
摘要: html简单模板: <div class="container"> <div class="box"></div> </div> 1.父盒子、子盒子均固定宽高 A.父盒子相对定位,子盒子绝对定位(垂直水平居中) .container{ width: 600px; height: 500px; pos 阅读全文
posted @ 2017-06-01 13:47 九门提督琪琪 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 1.简单模板 success访问成功不等于返回数据成功 阅读全文
posted @ 2017-06-01 13:36 九门提督琪琪 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 参考链接:http://www.cnblogs.com/yangheng/p/6018224.html 1.try{}catch(){}只能捕捉异常不能捕捉真假 2.模板 try { document.writeln("开始执行try块语句 > ") document.writeln("还没有发生例 阅读全文
posted @ 2017-06-01 12:00 九门提督琪琪 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 1.split分割字符串组成数组 2.subString分割字符串,包括开头不包括的结尾 3.添加标识符 if(a)return ; a = !a; 4.全局变量的处理(对象) 5.replace的运用,在js中只替换第一个 6. 阅读全文
posted @ 2017-06-01 10:51 九门提督琪琪 阅读(107) 评论(0) 推荐(0) 编辑