Commit 29218fa7 authored by 尚斌杰's avatar 尚斌杰

update

parent 259f3729
......@@ -5,6 +5,7 @@
192.168.155.65 gitlab.dev.daikuan.com
192.168.145.8 wiki.dev.daikuan.com
192.168.145.8 dashboard.dev.daikuan.com
192.168.145.8 mock.dev.daikuan.com
192.168.145.8 placehold.it
192.168.155.149 rap.crm.yxqiche.com
```
......@@ -22,4 +23,3 @@ http://dashboard.dev.daikuan.com
* SUMMARY.md为左边栏目录
* 所有文件通过markdown格式来写, .md命名
* 直接在master编写, push后自动更新
......@@ -9,6 +9,8 @@
* [远端构建机器环境](环境/远端构建机器环境.md)
### 项目相关
* [npm模块管理](项目相关/npm模块管理.md)
* [曝光统计](项目相关/曝光统计.md)
* [上线流程](项目相关/上线流程.md)
* [npm依赖版本管理](项目相关/npm依赖版本管理.md)
* [yarn/npm](项目相关/yarn.md)
......@@ -18,6 +20,7 @@
### 规范
* [vue编码规范](规范/vue编码规范.md)
* [Airbnb-React-JSX编码规范](规范/Airbnb-React-JSX编码规范.md)
* [ES6编码规范](规范/es6编码规范.md)
* [分支开发规范](规范/分支开发规范.md)
......@@ -25,11 +28,6 @@
* [git基本使用](git/git基本使用.md)
* [git分支管理策略](git/git分支管理策略.md)
### TypeScript
* [为什么要学习TypeScript](typescript/为什么要学习TypeScript.md)
* [TypeScript环境搭建](typescript/TypeScript环境搭建.md)
* [TypeScript基本类型](typescript/TypeScript基本类型.md)
### 其它
* [推荐网站](其它/推荐网站.md)
* [文档](其它/文档.md)
\ No newline at end of file
......@@ -17,7 +17,7 @@
* 阮一峰es6文档: http://es6.ruanyifeng.com/
* ES6 feature: https://github.com/ES-CN/es6features/blob/master/README.md
* jquery: http://w3school.com.cn/jquery/jquery_reference.asp
* TypeScript中文文档:http://www.css88.com/doc/typescript/
### vue相关(1.x)
* vue: https://v1.vuejs.org/api/
......@@ -29,6 +29,17 @@
* vue-router: https://router.vuejs.org/
* vuex: https://vuex.vuejs.org/
* ssr: https://ssr.vuejs.org/
* nuxt: https://zh.nuxtjs.org/
### react相关
* React0.14.x: http://react-ie8.xcatliu.com/
* React https://reactjs.org/
* React中文: https://doc.react-china.org/
* React-router: https://react-guide.github.io/react-router-cn/docs/API.html
### TypeScript相关
* TypeScript官网: http://www.typescriptlang.org/
* TypeScript中文文档: http://www.css88.com/doc/typescript/
### 类库及工具相关
* webpack2中文文档: http://www.css88.com/doc/webpack2/
......@@ -37,14 +48,13 @@
* Markdown入门参考: http://xianbai.me/learn-md/
* emoji图标: https://www.webpagefx.com/tools/emoji-cheat-sheet/
* iscroll5: http://iscrolljs.com/
* React-router: https://react-guide.github.io/react-router-cn/docs/API.html
* Ramda: http://ramdajs.com/docs/
* Ramda函数参考: http://www.ruanyifeng.com/blog/2017/03/ramda.html
* React0.14.x: http://react-ie8.xcatliu.com/
* Swiper3: http://idangero.us/swiper/api/#.WA3XgZN97IE
* Swiper2: http://2.swiper.com.cn/api/index.html
* Chartjs: http://www.chartjs.org/docs/latest/
* Immutable: http://facebook.github.io/immutable-js/docs/#/
* 百度地图api: http://lbsyun.baidu.com/index.php?title=jspopular/guide/introduction
* Chrome 开发者工具中文文档: http://www.css88.com/doc/chrome-devtools/
* ant.Design: https://ant.design/index-cn#/docs/react/introduce
\ No newline at end of file
* ant.Design: http://ant-design.gitee.io/index-cn
* ant.Design.Pro: http://ant-design-pro.gitee.io/index-cn
\ No newline at end of file
This diff is collapsed.
# npm模块管理
### semver规范
```
a.b.c
a: 主版本号, 不兼容的升级
b: 次版本号, 兼容性升级,增加新特性
c: 修订号, 兼容性升级, 修改已有bug
```
### 升级步骤
1. 代码修改,commit && push
2. npm version major|minor|patch(或 yarn version输入新的版本号)
3. git push(将升级版本的提交push到远端)
4. git push --tags(将升级版本的tag push到远端)
5. 调用方修改package.json里该模块版本号
# 曝光统计
### 开启
在bc统计脚本初始化配置对象里使用`exp`开启当前页面曝光统计,请确保`BEACON_INIT`生命在bc.js引入之前, 且页面中只有一处配置, 不要被覆盖(因为pid也在初始化配置中配置, 部分页面已经有该配置)
```javascript
var BEACON_INIT={
exp:true,
};
```
### 使用
```javascript
// 需要曝光统计的dom元素
// data-bc-exp指明该dom需要加入曝光统计检测
// data-bc-ex1是该元素统计的列表序号
// data-bc-ex2是该元素统计的车源id(8位)
<div
data-bc-exp
data-bc-ex1="1"
data-bc-ex2="12345678"
>
</div>
```
### 点击统计中增加额外信息
```javascript
<a
data-bc-ex1="1"
data-bc-ex2="12345678"
>点击元素</a>
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment