Skip to content

Commit

Permalink
添加注释
Browse files Browse the repository at this point in the history
  • Loading branch information
llan committed Jan 20, 2017
1 parent 653d993 commit ffb6d10
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ class Block {
}
}
/**
* init
* 初始化数据
*/
const init = function (nextArr) {
const BLOCK_SIZE = 20,
Expand All @@ -441,7 +441,9 @@ const init = function (nextArr) {
let block = new Block(params);
block.init();
};

/**
* 浏览器加载初始化
*/
window.onload = function () {
const site = document.querySelector('.site');
let {width, height, top, left} = window.getComputedStyle(site);
Expand Down

0 comments on commit ffb6d10

Please sign in to comment.